From 8185e6bb3a5d64717a5456903c71efc005ceb711 Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Sat, 26 Mar 2022 12:19:36 +1100 Subject: Remove unused variables Fixes #324 --- include/cxxopts.hpp | 8 -------- 1 file changed, 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 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]; -- cgit v1.2.3