Skip to content

Commit

Permalink
removed some unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Aug 28, 2024
1 parent cf02d06 commit e4ab5f0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions lib/astutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions lib/astutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/cppcheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <rawtokens> contents, this is only public for testing purposes
*/
Expand Down

0 comments on commit e4ab5f0

Please sign in to comment.