Refactorization: Removed unused function.

This commit is contained in:
PKEuS 2016-02-01 09:33:23 +01:00
parent 468a130447
commit d19b5031fa
2 changed files with 0 additions and 10 deletions

View File

@ -1393,11 +1393,6 @@ void SymbolDatabase::validate() const
} }
} }
void SymbolDatabase::cppcheckError(const Token *tok) const
{
throw InternalError(tok, "Analysis failed. If the code is valid then please report this failure.", InternalError::INTERNAL);
}
bool Variable::isPointerArray() const bool Variable::isPointerArray() const
{ {
return isArray() && nameToken() && nameToken()->previous() && (nameToken()->previous()->str() == "*"); return isArray() && nameToken() && nameToken()->previous() && (nameToken()->previous()->str() == "*");

View File

@ -1041,11 +1041,6 @@ private:
const Type *findTypeInNested(const Token *tok, const Scope *startScope) const; const Type *findTypeInNested(const Token *tok, const Scope *startScope) const;
const Scope *findNamespace(const Token * tok, const Scope * scope) const; const Scope *findNamespace(const Token * tok, const Scope * scope) const;
Function *findFunctionInScope(const Token *func, const Scope *ns); Function *findFunctionInScope(const Token *func, const Scope *ns);
/**
* Send error message to error logger about internal bug.
* @param tok the token that this bug concerns.
*/
void cppcheckError(const Token *tok) const;
/** Whether iName is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/ /** Whether iName is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/
bool isReservedName(const std::string& iName) const; bool isReservedName(const std::string& iName) const;