mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Removed unused ::applyOverrides method
This commit is contained in:
parent
17f4b50aa7
commit
e8a9e5bc32
2 changed files with 0 additions and 18 deletions
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue