mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57:20 +02:00
CLI2: Removed unused ::isName method
This commit is contained in:
parent
bf2720a59b
commit
f0d3e77608
2 changed files with 0 additions and 20 deletions
19
src/CLI2.cpp
19
src/CLI2.cpp
|
@ -2071,25 +2071,6 @@ bool CLI2::isAttribute (const std::string& raw) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
bool CLI2::isName (const std::string& raw) const
|
|
||||||
{
|
|
||||||
if (raw != "")
|
|
||||||
{
|
|
||||||
for (unsigned int i = 0; i < raw.length (); ++i)
|
|
||||||
{
|
|
||||||
if (i == 0 && ! Lexer::isIdentifierStart (raw[i]))
|
|
||||||
return false;
|
|
||||||
else if (! Lexer::isIdentifierNext (raw[i]))
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool CLI2::disqualifyInsufficientTerms (
|
bool CLI2::disqualifyInsufficientTerms (
|
||||||
const std::vector <std::pair <std::string, Lexer::Type>>& lexemes) const
|
const std::vector <std::pair <std::string, Lexer::Type>>& lexemes) const
|
||||||
|
|
|
@ -131,7 +131,6 @@ private:
|
||||||
|
|
||||||
bool isUUIDList (const std::string&) const;
|
bool isUUIDList (const std::string&) const;
|
||||||
bool isAttribute (const std::string&) const;
|
bool isAttribute (const std::string&) const;
|
||||||
bool isName (const std::string&) const;
|
|
||||||
|
|
||||||
bool disqualifyInsufficientTerms (const std::vector <std::pair <std::string, Lexer::Type>>&) const;
|
bool disqualifyInsufficientTerms (const std::vector <std::pair <std::string, Lexer::Type>>&) const;
|
||||||
bool disqualifyNoOps (const std::vector <std::pair <std::string, Lexer::Type>>&) const;
|
bool disqualifyNoOps (const std::vector <std::pair <std::string, Lexer::Type>>&) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue