mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Removed unused ::findOperators method
This commit is contained in:
parent
53e7d74ce3
commit
eca0e35451
2 changed files with 0 additions and 27 deletions
26
src/CLI2.cpp
26
src/CLI2.cpp
|
@ -522,7 +522,6 @@ void CLI2::prepareFilter (bool applyContext)
|
|||
desugarFilterAttributes ();
|
||||
desugarFilterAttributeModifiers ();
|
||||
desugarFilterPatterns ();
|
||||
findOperators ();
|
||||
findAttributes ();
|
||||
desugarFilterPlainArgs ();
|
||||
insertJunctions (); // Deliberately after all desugar calls.
|
||||
|
@ -1551,31 +1550,6 @@ void CLI2::desugarFilterPlainArgs ()
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void CLI2::findOperators ()
|
||||
{
|
||||
// Extract a list of entities for category.
|
||||
std::vector <std::string> options;
|
||||
auto c = _entities.equal_range ("operator");
|
||||
for (auto e = c.first; e != c.second; ++e)
|
||||
options.push_back (e->second);
|
||||
|
||||
// Walk the arguments and tag as OP.
|
||||
bool changes = false;
|
||||
for (auto& a : _args)
|
||||
if (a.hasTag ("FILTER"))
|
||||
if (std::find (options.begin (), options.end (), a.attribute ("raw")) != options.end ())
|
||||
if (! a.hasTag ("OP"))
|
||||
{
|
||||
a.tag ("OP");
|
||||
changes = true;
|
||||
}
|
||||
|
||||
if (changes &&
|
||||
context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (dump ("CLI2::analyze findOperators"));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void CLI2::findAttributes ()
|
||||
{
|
||||
|
|
|
@ -112,7 +112,6 @@ private:
|
|||
void insertIDExpr ();
|
||||
/*
|
||||
void desugarFilterPlainArgs ();
|
||||
void findOperators ();
|
||||
void findAttributes ();
|
||||
void insertJunctions ();
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue