mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
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 (
|
||||
const std::vector <std::pair <std::string, Lexer::Type>>& lexemes) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue