mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI2: Removed unused ::isPattern method
This commit is contained in:
parent
6fdd5f8053
commit
014baa4622
2 changed files with 1 additions and 13 deletions
13
src/CLI2.cpp
13
src/CLI2.cpp
|
@ -2029,17 +2029,6 @@ bool CLI2::isUUIDList (const std::string& raw) const
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool CLI2::isPattern (const std::string& raw) const
|
||||
{
|
||||
if (raw.length () > 2 &&
|
||||
raw[0] == '/' &&
|
||||
raw[raw.length () - 1] == '/')
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// The non-g case is caught by ::isPattern, but not categorized, so it doesn't
|
||||
// matter.
|
||||
|
@ -2170,7 +2159,7 @@ bool CLI2::disqualifyOnlyParenOps (
|
|||
isUUID (lexeme.first) || // obsolete
|
||||
isIDSequence (lexeme.first) || // obsolete
|
||||
isID (lexeme.first) || // obsolete
|
||||
isPattern (lexeme.first) ||
|
||||
isPattern (lexeme.first) || // obsolete
|
||||
isAttribute (lexeme.first))
|
||||
++opSugarCount;
|
||||
}
|
||||
|
|
|
@ -130,7 +130,6 @@ private:
|
|||
void decomposeModSubstitutions ();
|
||||
|
||||
bool isUUIDList (const std::string&) const;
|
||||
bool isPattern (const std::string&) const;
|
||||
bool isSubstitution (const std::string&) const;
|
||||
bool isAttribute (const std::string&) const;
|
||||
bool isOperator (const std::string&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue