[poincare/parser] Remove IsReservedName unused parameter

The function is only called in apps/shared/function.
This commit is contained in:
Ruben Dashyan
2019-10-30 16:31:36 +01:00
committed by Léa Saviot
parent ab80741838
commit 967343f75d
2 changed files with 3 additions and 3 deletions

View File

@@ -17,8 +17,8 @@ Expression Parser::parse() {
return Expression();
}
bool Parser::IsReservedName(const char * name, size_t nameLength, const Expression::FunctionHelper * const * * functionHelper) {
return IsReservedFunctionName(name, nameLength, functionHelper)
bool Parser::IsReservedName(const char * name, size_t nameLength) {
return IsReservedFunctionName(name, nameLength)
|| IsSpecialIdentifierName(name, nameLength);
}

View File

@@ -30,7 +30,7 @@ public:
Expression parse();
Status getStatus() const { return m_status; }
static bool IsReservedName(const char * name, size_t nameLength, const Expression::FunctionHelper * const * * functionHelper = nullptr);
static bool IsReservedName(const char * name, size_t nameLength);
private:
static bool IsReservedFunctionName(const char * name, size_t nameLength, const Expression::FunctionHelper * const * * functionHelper = nullptr);