aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-10 05:01:18 +0000
committerlloyd <[email protected]>2008-04-10 05:01:18 +0000
commit23df73a03249341a569a97a39081769b4f8f174b (patch)
treeac9737815fb6dd38fa37a7de8484eebeb0554ef2
parent7b13c4f0831d6d94550969eaeaae5d028c1a034b (diff)
Remove the unused function Config::option_as_bool
-rw-r--r--include/config.h1
-rw-r--r--src/config.cpp16
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,