diff options
-rw-r--r-- | include/config.h | 1 | ||||
-rw-r--r-- | src/config.cpp | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/config.h b/include/config.h index 0072be3bf..67766dcb7 100644 --- a/include/config.h +++ b/include/config.h @@ -33,7 +33,6 @@ class Config std::string option(const std::string&) const; u32bit option_as_u32bit(const std::string&) const; u32bit option_as_time(const std::string&) const; - bool option_as_bool(const std::string&) const; std::vector<std::string> option_as_list(const std::string&) const; void set_option(const std::string, const std::string&); diff --git a/src/config.cpp b/src/config.cpp index b8d54cfdf..bc950dcff 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -172,22 +172,6 @@ u32bit Config::option_as_time(const std::string& key) const } /************************************************* -* Get the config setting as a boolean * -*************************************************/ -bool Config::option_as_bool(const std::string& key) const - { - const std::string value = option(key); - if(value == "0" || value == "false") - return false; - if(value == "1" || value == "true") - return true; - - throw Decoding_Error( - "Config::option_as_bool: Unknown boolean value " + value - ); - } - -/************************************************* * Choose the signature format for a PK algorithm * *************************************************/ void Config::choose_sig_format(const std::string& algo_name, |