CLI2: Remvoed unused ::isTag method

This commit is contained in:
Paul Beckingham 2015-06-20 09:46:55 -07:00
parent 072f966099
commit 49decfec2a
2 changed files with 1 additions and 18 deletions

View file

@ -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

View file

@ -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;