Skip to content

Commit 604c0c7

Browse files
OptionParser.cpp: Removing a variable with no effect when parsing config files
1 parent f80f5f6 commit 604c0c7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

OptionParser.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ read_config_file(const string &config_filename,
369369
throw runtime_error("cannot open config file: " + config_filename);
370370

371371
string line;
372-
size_t line_number = 0;
373372
while (in) {
374373

375374
if (!getline(in, line))
@@ -398,12 +397,9 @@ read_config_file(const string &config_filename,
398397
if (!all_of(begin(option_value), end(option_value), valid_option_char))
399398
throw runtime_error("bad option label: " + line);
400399

401-
// cerr << option_label << '\t' << option_value << endl;
402-
403400
config_file_options.push_back(line);
404401
}
405402
in.peek();
406-
++line_number;
407403
}
408404
}
409405

0 commit comments

Comments
 (0)