Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
Fixes #324
  • Loading branch information
jarro2783 committed Mar 26, 2022
1 parent 779c429 commit 8185e6b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/cxxopts.hpp
Expand Up @@ -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
Expand Down Expand Up @@ -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];

Expand Down

0 comments on commit 8185e6b

Please sign in to comment.