Skip to content

Commit d19b503

Browse files
committed
Refactorization: Removed unused function.
1 parent 468a130 commit d19b503

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,11 +1393,6 @@ void SymbolDatabase::validate() const
13931393
}
13941394
}
13951395

1396-
void SymbolDatabase::cppcheckError(const Token *tok) const
1397-
{
1398-
throw InternalError(tok, "Analysis failed. If the code is valid then please report this failure.", InternalError::INTERNAL);
1399-
}
1400-
14011396
bool Variable::isPointerArray() const
14021397
{
14031398
return isArray() && nameToken() && nameToken()->previous() && (nameToken()->previous()->str() == "*");

lib/symboldatabase.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,11 +1041,6 @@ class CPPCHECKLIB SymbolDatabase {
10411041
const Type *findTypeInNested(const Token *tok, const Scope *startScope) const;
10421042
const Scope *findNamespace(const Token * tok, const Scope * scope) const;
10431043
Function *findFunctionInScope(const Token *func, const Scope *ns);
1044-
/**
1045-
* Send error message to error logger about internal bug.
1046-
* @param tok the token that this bug concerns.
1047-
*/
1048-
void cppcheckError(const Token *tok) const;
10491044

10501045
/** Whether iName is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/
10511046
bool isReservedName(const std::string& iName) const;

0 commit comments

Comments
 (0)