Skip to content

Commit f9b461a

Browse files
Remove redundant logger field
There is already an inherited field log referencing the same thing.
1 parent af22270 commit f9b461a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/goto-harness/goto_harness_parse_options.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int goto_harness_parse_optionst::doit()
4141
{
4242
if(cmdline.isset("version"))
4343
{
44-
logger.status() << CBMC_VERSION << '\n';
44+
log.status() << CBMC_VERSION << '\n';
4545
return CPROVER_EXIT_SUCCESS;
4646
}
4747

@@ -55,7 +55,7 @@ int goto_harness_parse_optionst::doit()
5555

5656
// Read goto binary into goto-model
5757
auto read_goto_binary_result =
58-
read_goto_binary(got_harness_config.in_file, logger.get_message_handler());
58+
read_goto_binary(got_harness_config.in_file, log.get_message_handler());
5959
if(!read_goto_binary_result.has_value())
6060
{
6161
throw deserialization_exceptiont{"failed to read goto program from file `" +
@@ -89,7 +89,7 @@ int goto_harness_parse_optionst::doit()
8989

9090
// Write end result to new goto-binary
9191
if(write_goto_binary(
92-
got_harness_config.out_file, goto_model, logger.get_message_handler()))
92+
got_harness_config.out_file, goto_model, log.get_message_handler()))
9393
{
9494
throw system_exceptiont{"failed to write goto program from file `" +
9595
got_harness_config.out_file + "'"};
@@ -100,7 +100,7 @@ int goto_harness_parse_optionst::doit()
100100

101101
void goto_harness_parse_optionst::help()
102102
{
103-
logger.status()
103+
log.status()
104104
<< '\n'
105105
<< banner_string("Goto-Harness", CBMC_VERSION) << '\n'
106106
<< align_center_with_border("Copyright (C) 2019") << '\n'
@@ -127,8 +127,7 @@ goto_harness_parse_optionst::goto_harness_parse_optionst(
127127
int argc,
128128
const char *argv[])
129129
: parse_options_baset{GOTO_HARNESS_OPTIONS, argc, argv, ui_message_handler},
130-
ui_message_handler(cmdline, std::string("GOTO-HARNESS ") + CBMC_VERSION),
131-
logger(ui_message_handler)
130+
ui_message_handler(cmdline, std::string("GOTO-HARNESS ") + CBMC_VERSION)
132131
{
133132
}
134133

src/goto-harness/goto_harness_parse_options.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class goto_harness_parse_optionst : public parse_options_baset
4646
};
4747

4848
ui_message_handlert ui_message_handler;
49-
messaget logger;
5049

5150
/// Handle command line arguments that are common to all
5251
/// harness generators.

0 commit comments

Comments
 (0)