aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
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 /src/config.cpp
parent7b13c4f0831d6d94550969eaeaae5d028c1a034b (diff)
Remove the unused function Config::option_as_bool
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp16
1 files changed, 0 insertions, 16 deletions
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,