From 66d92bc063a4cbb69e4242a15c3a90daa3db069e Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 12 Apr 2008 03:08:18 +0000 Subject: Remove Config::option_as_u32bit - the only advantage it had over calling to_u32but on the return value from Config::option was that it passed it through parse_expr, which did some simple evaluation tricks so you could say 64*1024. That does not seem worth the cost in code, especially because most of the values so controlled are probably never changed. By making them compile time constants, additional optimizations are possible in the source as well as by the compiler. Remove the pkcs8_tries config option. Hardcode that value to 3 instead. I want to rewrite that code in the relatively near future and all that will (hopefully) go away. --- include/config.h | 1 - include/parsing.h | 1 - 2 files changed, 2 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index 48f013573..86344cc86 100644 --- a/include/config.h +++ b/include/config.h @@ -31,7 +31,6 @@ class Config const std::string&, bool = true); std::string option(const std::string&) const; - u32bit option_as_u32bit(const std::string&) const; u32bit option_as_time(const std::string&) const; void set_option(const std::string, const std::string&); diff --git a/include/parsing.h b/include/parsing.h index 93eb8c279..9c9128d33 100644 --- a/include/parsing.h +++ b/include/parsing.h @@ -19,7 +19,6 @@ std::vector parse_algorithm_name(const std::string&); std::vector split_on(const std::string&, char); std::vector parse_asn1_oid(const std::string&); bool x500_name_cmp(const std::string&, const std::string&); -u32bit parse_expr(const std::string&); /************************************************* * String/Integer Conversions * -- cgit v1.2.3