mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
CLI2: Removed unused ::findAttributes method
This commit is contained in:
parent
62307f64da
commit
4162756560
2 changed files with 0 additions and 29 deletions
28
src/CLI2.cpp
28
src/CLI2.cpp
|
@ -523,9 +523,6 @@ void CLI2::prepareFilter (bool applyContext)
|
|||
desugarFilterAttributeModifiers ();
|
||||
*/
|
||||
desugarFilterPatterns ();
|
||||
/*
|
||||
findAttributes ();
|
||||
*/
|
||||
desugarFilterPlainArgs ();
|
||||
/*
|
||||
insertJunctions (); // Deliberately after all desugar calls.
|
||||
|
@ -1475,31 +1472,6 @@ void CLI2::desugarFilterPlainArgs ()
|
|||
}
|
||||
|
||||
/*
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void CLI2::findAttributes ()
|
||||
{
|
||||
// Extract a list of entities for category.
|
||||
std::vector <std::string> options;
|
||||
auto c = _entities.equal_range ("attribute");
|
||||
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 ("ATTRIBUTE"))
|
||||
{
|
||||
a.tag ("ATTRIBUTE");
|
||||
changes = true;
|
||||
}
|
||||
|
||||
if (changes &&
|
||||
context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (dump ("CLI2::analyze findAttributes"));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Two consecutive FILTER, non-OP arguments that are not "(" or ")" need an
|
||||
// "and" operator inserted between them.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue