File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,9 @@ signed int optionst::get_signed_int_option(const std::string &option) const
54
54
}
55
55
56
56
unsigned int optionst::get_unsigned_int_option (const std::string &option) const
57
- {
58
- return get_unsigned_int_option_default (option, 0 );
59
- }
60
-
61
- unsigned int optionst::get_unsigned_int_option_default (
62
- const std::string &option,
63
- unsigned int default_val) const
64
57
{
65
58
const std::string value=get_option (option);
66
- return value.empty () ? default_val : safe_string2unsigned (value);
59
+ return value.empty ()? 0 : safe_string2unsigned (value);
67
60
}
68
61
69
62
bool optionst::is_set (const std::string &option) const
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ class optionst
29
29
bool get_bool_option (const std::string &option) const ;
30
30
signed int get_signed_int_option (const std::string &option) const ;
31
31
unsigned int get_unsigned_int_option (const std::string &option) const ;
32
- unsigned int get_unsigned_int_option_default (
33
- const std::string &option,
34
- unsigned int default_val) const ;
35
32
const value_listt &get_list_option (const std::string &option) const ;
36
33
37
34
// / N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo")
You can’t perform that action at this time.
0 commit comments