CLI2: Commented out implementation of ::desugarFilterPlainArgs

- The algorithm is wrong, and it misidentfies solitary search patterns.
This commit is contained in:
Paul Beckingham 2015-06-24 21:29:56 -04:00
parent 9dcd52fc5b
commit 88b1707b58

View file

@ -528,7 +528,7 @@ void CLI2::prepareFilter (bool applyContext)
findIDs (); findIDs ();
findUUIDs (); findUUIDs ();
insertIDExpr (); insertIDExpr ();
desugarFilterPlainArgs (); desugarFilterPlainArgs (); // Unimplemented.
findStrayModifications (); findStrayModifications ();
desugarFilterTags (); desugarFilterTags ();
desugarFilterAttributes (); desugarFilterAttributes ();
@ -1403,8 +1403,11 @@ void CLI2::insertIDExpr ()
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// TODO Removed because this algorithm is unreliable.
void CLI2::desugarFilterPlainArgs () void CLI2::desugarFilterPlainArgs ()
{ {
/*
bool changes = false; bool changes = false;
std::vector <A2> reconstructed; std::vector <A2> reconstructed;
auto prev = &_args[0]; auto prev = &_args[0];
@ -1448,6 +1451,7 @@ void CLI2::desugarFilterPlainArgs ()
if (context.config.getInteger ("debug.parser") >= 3) if (context.config.getInteger ("debug.parser") >= 3)
context.debug (dump ("CLI2::prepareFilter desugarFilterPlainArgs")); context.debug (dump ("CLI2::prepareFilter desugarFilterPlainArgs"));
} }
*/
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////