diff --git a/src/CLI2.cpp b/src/CLI2.cpp index b64d7a828..97346db27 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -2011,22 +2011,6 @@ bool CLI2::isTerminator (const std::string& raw) const return raw == "--"; } -//////////////////////////////////////////////////////////////////////////////// -// Valid tag -// - Length > 1 -// - Starts with +/- -// - The rest matches ::isName -bool CLI2::isTag (const std::string& raw) const -{ - if (raw.size () >= 2 && - (raw[0] == '+' || raw[0] == '-') && - isName (raw.substr (1)) && - raw.find (' ') == std::string::npos) - return true; - - return false; -} - //////////////////////////////////////////////////////////////////////////////// bool CLI2::isUUIDList (const std::string& raw) const { @@ -2187,7 +2171,7 @@ bool CLI2::disqualifyOnlyParenOps ( ++opParenCount; } - else if (isTag (lexeme.first) || + else if (isTag (lexeme.first) || // obsolete isUUIDList (lexeme.first) || isUUID (lexeme.first) || // obsolete isIDSequence (lexeme.first) || // obsolete diff --git a/src/CLI2.h b/src/CLI2.h index 1be5187aa..78067d003 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -130,7 +130,6 @@ private: void decomposeModSubstitutions (); bool isTerminator (const std::string&) const; - bool isTag (const std::string&) const; bool isUUIDList (const std::string&) const; bool isPattern (const std::string&) const; bool isSubstitution (const std::string&) const;