CLI2: Removed unused ::applyOverrides method
This commit is contained in:
17
src/CLI2.cpp
17
src/CLI2.cpp
@@ -493,23 +493,6 @@ void CLI2::addRawFilter (const std::string& arg)
|
|||||||
add (lexeme);
|
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.
|
// Extract all the FILTER-tagged items.
|
||||||
const std::string CLI2::getFilter (bool applyContext)
|
const std::string CLI2::getFilter (bool applyContext)
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ public:
|
|||||||
/*
|
/*
|
||||||
void addContextFilter ();
|
void addContextFilter ();
|
||||||
void addRawFilter (const std::string& arg);
|
void addRawFilter (const std::string& arg);
|
||||||
void applyOverrides ();
|
|
||||||
const std::string getFilter (bool applyContext = true);
|
const std::string getFilter (bool applyContext = true);
|
||||||
*/
|
*/
|
||||||
void prepareFilter (bool applyContext = true);
|
void prepareFilter (bool applyContext = true);
|
||||||
|
|||||||
Reference in New Issue
Block a user