diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 9cf9c055f..3915b283e 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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 { return isArray() && nameToken() && nameToken()->previous() && (nameToken()->previous()->str() == "*"); diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index e5930f5e7..9eea44b8f 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1041,11 +1041,6 @@ private: const Type *findTypeInNested(const Token *tok, const Scope *startScope) const; const Scope *findNamespace(const Token * tok, const Scope * scope) const; 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*/ bool isReservedName(const std::string& iName) const;