From 41627565604e3eedf6bb7a74d545c94dbd6f5aac Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 20 Jun 2015 12:39:44 -0700 Subject: [PATCH] CLI2: Removed unused ::findAttributes method --- src/CLI2.cpp | 28 ---------------------------- src/CLI2.h | 1 - 2 files changed, 29 deletions(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 114346d30..0cb1b3282 100644 --- a/src/CLI2.cpp +++ b/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 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. diff --git a/src/CLI2.h b/src/CLI2.h index 58d0fa40a..70593f581 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -112,7 +112,6 @@ private: void insertIDExpr (); void desugarFilterPlainArgs (); /* - void findAttributes (); void insertJunctions (); */ void defaultCommand ();