CLI2: Removed obsolete ::decomposeModTags

This commit is contained in:
Paul Beckingham 2015-07-05 16:30:59 -04:00
parent f5ece63ec0
commit af71af1085
2 changed files with 0 additions and 23 deletions

View file

@ -638,7 +638,6 @@ void CLI2::prepareFilter (bool applyContext)
insertJunctions (); // Deliberately after all desugar calls.
// Decompose the elements for MODIFICATIONs.
//decomposeModTags ();
//decomposeModSubstitutions ();
}
@ -1697,27 +1696,6 @@ void CLI2::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 ()
{