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 == "--";
|
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
|
bool CLI2::isUUIDList (const std::string& raw) const
|
||||||
{
|
{
|
||||||
@@ -2187,7 +2171,7 @@ bool CLI2::disqualifyOnlyParenOps (
|
|||||||
++opParenCount;
|
++opParenCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (isTag (lexeme.first) ||
|
else if (isTag (lexeme.first) || // obsolete
|
||||||
isUUIDList (lexeme.first) ||
|
isUUIDList (lexeme.first) ||
|
||||||
isUUID (lexeme.first) || // obsolete
|
isUUID (lexeme.first) || // obsolete
|
||||||
isIDSequence (lexeme.first) || // obsolete
|
isIDSequence (lexeme.first) || // obsolete
|
||||||
|
|||||||
@@ -130,7 +130,6 @@ private:
|
|||||||
void decomposeModSubstitutions ();
|
void decomposeModSubstitutions ();
|
||||||
|
|
||||||
bool isTerminator (const std::string&) const;
|
bool isTerminator (const std::string&) const;
|
||||||
bool isTag (const std::string&) const;
|
|
||||||
bool isUUIDList (const std::string&) const;
|
bool isUUIDList (const std::string&) const;
|
||||||
bool isPattern (const std::string&) const;
|
bool isPattern (const std::string&) const;
|
||||||
bool isSubstitution (const std::string&) const;
|
bool isSubstitution (const std::string&) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user