aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-17 06:17:24 -0400
committerJack Lloyd <[email protected]>2016-10-21 16:53:17 -0400
commit032f2f26b11c95490b1405fa957e12726654e7fd (patch)
tree29ee7bacb337f0ad3b049ff85e96786518b544d4 /src/lib/base
parent51ce4b1ee79aa7be1e72830a729aac8ee9a854d9 (diff)
Remove unused functions from SCAN_Name
Diffstat (limited to 'src/lib/base')
-rw-r--r--src/lib/base/scan_name.cpp22
-rw-r--r--src/lib/base/scan_name.h17
2 files changed, 0 insertions, 39 deletions
diff --git a/src/lib/base/scan_name.cpp b/src/lib/base/scan_name.cpp
index d18296a78..70c6e7f25 100644
--- a/src/lib/base/scan_name.cpp
+++ b/src/lib/base/scan_name.cpp
@@ -54,11 +54,6 @@ std::string make_arg(
}
-SCAN_Name::SCAN_Name(std::string algo_spec, const std::string& extra) : SCAN_Name(algo_spec)
- {
- m_alg_name += extra;
- }
-
SCAN_Name::SCAN_Name(const char* algo_spec) : SCAN_Name(std::string(algo_spec))
{
}
@@ -124,23 +119,6 @@ SCAN_Name::SCAN_Name(std::string algo_spec) : m_orig_algo_spec(algo_spec), m_alg
}
}
-std::string SCAN_Name::all_arguments() const
- {
- std::string out;
- if(arg_count())
- {
- out += "(";
- for(size_t i = 0; i != arg_count(); ++i)
- {
- out += arg(i);
- if(i != arg_count() - 1)
- out += ",";
- }
- out += ")";
- }
- return out;
- }
-
std::string SCAN_Name::arg(size_t i) const
{
if(i >= arg_count())
diff --git a/src/lib/base/scan_name.h b/src/lib/base/scan_name.h
index 2587fb875..8356863ed 100644
--- a/src/lib/base/scan_name.h
+++ b/src/lib/base/scan_name.h
@@ -36,13 +36,6 @@ class BOTAN_DLL SCAN_Name
explicit SCAN_Name(std::string algo_spec);
/**
- * Create a SCAN_Name
- * @param algo_spec A SCAN-format name
- * @param extra An extra string appended to the algorithm name
- */
- SCAN_Name(std::string algo_spec, const std::string& extra);
-
- /**
* @return original input string
*/
const std::string& as_string() const { return m_orig_algo_spec; }
@@ -53,16 +46,6 @@ class BOTAN_DLL SCAN_Name
const std::string& algo_name() const { return m_alg_name; }
/**
- * @return algorithm name plus any arguments
- */
- std::string algo_name_and_args() const { return algo_name() + all_arguments(); }
-
- /**
- * @return all arguments
- */
- std::string all_arguments() const;
-
- /**
* @return number of arguments
*/
size_t arg_count() const { return m_args.size(); }