From e8a9e5bc32720b27a36db2a48e3272df94681846 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 20 Jun 2015 09:29:54 -0700 Subject: [PATCH] CLI2: Removed unused ::applyOverrides method --- src/CLI2.cpp | 17 ----------------- src/CLI2.h | 1 - 2 files changed, 18 deletions(-) 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);