CLI2: Remvoed unused ::isTag method
This commit is contained in:
18
src/CLI2.cpp
18
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
|
||||
|
||||
Reference in New Issue
Block a user