Commit 8185e6bb3a5d64717a5456903c71efc005ceb711

Authored by Jarryd Beck
1 parent 779c429b

Remove unused variables

Fixes #324
Showing 1 changed file with 0 additions and 8 deletions
include/cxxopts.hpp
... ... @@ -1867,9 +1867,6 @@ namespace cxxopts
1867 1867  
1868 1868 //mapping from groups to help options
1869 1869 std::map<std::string, HelpGroupDetails> m_help{};
1870   -
1871   - std::list<OptionDetails> m_option_list{};
1872   - std::unordered_map<std::string, decltype(m_option_list)::iterator> m_option_map{};
1873 1870 };
1874 1871  
1875 1872 class OptionAdder
... ... @@ -2508,11 +2505,6 @@ Options::add_option
2508 2505 add_one_option(l, option);
2509 2506 }
2510 2507  
2511   - m_option_list.push_front(*option.get());
2512   - auto iter = m_option_list.begin();
2513   - m_option_map[s] = iter;
2514   - m_option_map[l] = iter;
2515   -
2516 2508 //add the help details
2517 2509 auto& options = m_help[group];
2518 2510  
... ...