CLI2: Removed unused ::isName method
This commit is contained in:
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user