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 m_help{}; - - std::list m_option_list{}; - std::unordered_map 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];