mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Remvoed unused ::isTag method
This commit is contained in:
parent
072f966099
commit
49decfec2a
2 changed files with 1 additions and 18 deletions
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue