CLI2: Removed unused ::isName method

This commit is contained in:
Paul Beckingham 2015-06-20 09:53:46 -07:00
parent bf2720a59b
commit f0d3e77608
2 changed files with 0 additions and 20 deletions

View file

@ -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