diff --git a/lib/astutils.cpp b/lib/astutils.cpp index b0010471316..56b04edb4b0 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -1094,18 +1094,6 @@ static bool isAliased(const Token *startTok, const Token *endTok, nonneg int var return false; } -bool isAliased(const Variable *var) -{ - if (!var) - return false; - if (!var->scope()) - return false; - const Token *start = var->declEndToken(); - if (!start) - return false; - return isAliased(start, var->scope()->bodyEnd, var->declarationId()); -} - bool exprDependsOnThis(const Token* expr, bool onVar, nonneg int depth) { if (!expr) diff --git a/lib/astutils.h b/lib/astutils.h index 2524f012765..c7d8cf478e9 100644 --- a/lib/astutils.h +++ b/lib/astutils.h @@ -389,8 +389,6 @@ bool isAliasOf(const Token *tok, nonneg int varid, bool* inconclusive = nullptr) bool isAliasOf(const Token* tok, const Token* expr, int* indirect = nullptr, bool* inconclusive = nullptr); -bool isAliased(const Variable *var); - const Token* getArgumentStart(const Token* ftok); /** Determines the number of arguments - if token is a function call or macro diff --git a/lib/cppcheck.h b/lib/cppcheck.h index 5cfc3b472ba..9143760dcff 100644 --- a/lib/cppcheck.h +++ b/lib/cppcheck.h @@ -156,8 +156,6 @@ class CPPCHECKLIB CppCheck : ErrorLogger { bool isPremiumCodingStandardId(const std::string& id) const; - std::string getAddonMessage(const std::string& id, const std::string& text) const; - /** * @brief Get dumpfile contents, this is only public for testing purposes */