mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Removed unused ::isSubstitution method
This commit is contained in:
parent
014baa4622
commit
2d453f5f88
2 changed files with 0 additions and 15 deletions
14
src/CLI2.cpp
14
src/CLI2.cpp
|
@ -2029,20 +2029,6 @@ bool CLI2::isUUIDList (const std::string& raw) const
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// The non-g case is caught by ::isPattern, but not categorized, so it doesn't
|
||||
// matter.
|
||||
bool CLI2::isSubstitution (const std::string& raw) const
|
||||
{
|
||||
if (raw.length () > 3 && // /x// = length 4
|
||||
raw[0] == '/' &&
|
||||
raw[raw.length () - 2] == '/' &&
|
||||
raw[raw.length () - 1] == 'g')
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Covers attribute and attribute modifiers.
|
||||
// <attr>.[~]<mod>[:=]...
|
||||
|
|
|
@ -130,7 +130,6 @@ private:
|
|||
void decomposeModSubstitutions ();
|
||||
|
||||
bool isUUIDList (const std::string&) const;
|
||||
bool isSubstitution (const std::string&) const;
|
||||
bool isAttribute (const std::string&) const;
|
||||
bool isOperator (const std::string&) const;
|
||||
bool isName (const std::string&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue