diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 884a5bc31..870f0b824 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -493,23 +493,6 @@ void CLI2::addRawFilter (const std::string& arg) add (lexeme); } -//////////////////////////////////////////////////////////////////////////////// -// Scan arguments, looking for any tagged CONFIG, in which case extract the name -// and value, applying it to context.config. -void CLI2::applyOverrides () -{ - for (auto& a : _args) - { - if (a.hasTag ("CONFIG")) - { - std::string name = a.attribute ("name"); - std::string value = a.attribute ("value"); - context.config.set (name, value); - context.footnote (format (STRING_PARSER_OVERRIDE_RC, name, value)); - } - } -} - //////////////////////////////////////////////////////////////////////////////// // Extract all the FILTER-tagged items. const std::string CLI2::getFilter (bool applyContext) diff --git a/src/CLI2.h b/src/CLI2.h index 9524a08b8..a76c955b0 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -84,7 +84,6 @@ public: /* void addContextFilter (); void addRawFilter (const std::string& arg); - void applyOverrides (); const std::string getFilter (bool applyContext = true); */ void prepareFilter (bool applyContext = true);