diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 47a5ac317..4e5139f72 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -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 () { diff --git a/src/CLI2.h b/src/CLI2.h index 83e2292e5..1640d9b8b 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -104,7 +104,6 @@ private: void desugarFilterPlainArgs (); void insertJunctions (); void defaultCommand (); - void decomposeModTags (); void decomposeModSubstitutions (); public: