diff options
author | Jarryd Beck <jarro.2783@gmail.com> | 2022-03-26 04:19:36 +0300 |
---|---|---|
committer | Jarryd Beck <jarro.2783@gmail.com> | 2022-03-26 04:19:36 +0300 |
commit | 8185e6bb3a5d64717a5456903c71efc005ceb711 (patch) | |
tree | eb8c1eebfe23a5a75a86c958fb1cca11cb6f4d61 | |
parent | 779c429b0ec63cc6d5e28b159b044cb8e12ad3a3 (diff) |
Remove unused variables
Fixes #324
-rw-r--r-- | include/cxxopts.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 2dd4da6..b957956 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1867,9 +1867,6 @@ namespace cxxopts //mapping from groups to help options std::map<std::string, HelpGroupDetails> m_help{}; - - std::list<OptionDetails> m_option_list{}; - std::unordered_map<std::string, decltype(m_option_list)::iterator> m_option_map{}; }; class OptionAdder @@ -2508,11 +2505,6 @@ Options::add_option add_one_option(l, option); } - m_option_list.push_front(*option.get()); - auto iter = m_option_list.begin(); - m_option_map[s] = iter; - m_option_map[l] = iter; - //add the help details auto& options = m_help[group]; |