Skip to content

Commit 1f28336

Browse files
authored
removed some unused functions (#6732)
1 parent d7ddfaa commit 1f28336

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

lib/astutils.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,18 +1094,6 @@ static bool isAliased(const Token *startTok, const Token *endTok, nonneg int var
10941094
return false;
10951095
}
10961096

1097-
bool isAliased(const Variable *var)
1098-
{
1099-
if (!var)
1100-
return false;
1101-
if (!var->scope())
1102-
return false;
1103-
const Token *start = var->declEndToken();
1104-
if (!start)
1105-
return false;
1106-
return isAliased(start, var->scope()->bodyEnd, var->declarationId());
1107-
}
1108-
11091097
bool exprDependsOnThis(const Token* expr, bool onVar, nonneg int depth)
11101098
{
11111099
if (!expr)

lib/astutils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,6 @@ bool isAliasOf(const Token *tok, nonneg int varid, bool* inconclusive = nullptr)
389389

390390
bool isAliasOf(const Token* tok, const Token* expr, int* indirect = nullptr, bool* inconclusive = nullptr);
391391

392-
bool isAliased(const Variable *var);
393-
394392
const Token* getArgumentStart(const Token* ftok);
395393

396394
/** Determines the number of arguments - if token is a function call or macro

lib/cppcheck.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ class CPPCHECKLIB CppCheck : ErrorLogger {
156156

157157
bool isPremiumCodingStandardId(const std::string& id) const;
158158

159-
std::string getAddonMessage(const std::string& id, const std::string& text) const;
160-
161159
/**
162160
* @brief Get dumpfile <rawtokens> contents, this is only public for testing purposes
163161
*/

0 commit comments

Comments
 (0)