mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Removed obsolete ::decomposeModTags
This commit is contained in:
parent
f5ece63ec0
commit
af71af1085
2 changed files with 0 additions and 23 deletions
22
src/CLI2.cpp
22
src/CLI2.cpp
|
@ -638,7 +638,6 @@ void CLI2::prepareFilter (bool applyContext)
|
||||||
insertJunctions (); // Deliberately after all desugar calls.
|
insertJunctions (); // Deliberately after all desugar calls.
|
||||||
|
|
||||||
// Decompose the elements for MODIFICATIONs.
|
// Decompose the elements for MODIFICATIONs.
|
||||||
//decomposeModTags ();
|
|
||||||
//decomposeModSubstitutions ();
|
//decomposeModSubstitutions ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1697,27 +1696,6 @@ void CLI2::defaultCommand ()
|
||||||
context.debug (dump ("CLI2::analyze defaultCommand"));
|
context.debug (dump ("CLI2::analyze defaultCommand"));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
void CLI2::decomposeModTags ()
|
|
||||||
{
|
|
||||||
bool changes = false;
|
|
||||||
for (auto& a : _args)
|
|
||||||
{
|
|
||||||
if (a._lextype == Lexer::Type::tag &&
|
|
||||||
a.hasTag ("MODIFICATION"))
|
|
||||||
{
|
|
||||||
std::string raw = a.attribute ("raw");
|
|
||||||
a.attribute ("name", raw.substr (1));
|
|
||||||
a.attribute ("sign", raw.substr (0, 1));
|
|
||||||
changes = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (changes &&
|
|
||||||
context.config.getInteger ("debug.parser") >= 3)
|
|
||||||
context.debug (dump ("CLI2::prepareFilter decomposeModTags"));
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void CLI2::decomposeModSubstitutions ()
|
void CLI2::decomposeModSubstitutions ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -104,7 +104,6 @@ private:
|
||||||
void desugarFilterPlainArgs ();
|
void desugarFilterPlainArgs ();
|
||||||
void insertJunctions ();
|
void insertJunctions ();
|
||||||
void defaultCommand ();
|
void defaultCommand ();
|
||||||
void decomposeModTags ();
|
|
||||||
void decomposeModSubstitutions ();
|
void decomposeModSubstitutions ();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue