Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Oct 7, 2024
1 parent 55b16e7 commit c24067f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1254,10 +1254,6 @@ bool CheckOther::checkInnerScope(const Token *tok, const Variable* var, bool& us
if (ftok->function()) {
const std::list<Variable> &argvars = ftok->function()->argumentList;
const Variable *argvar = ftok->function()->getArgumentVar(argn);
for (const Variable & other : argvars) {
if (&other != argvar && mayDependOn(other.valueType(), argvar->valueType()))
return false;
}
if (!std::all_of(argvars.cbegin(), argvars.cend(), [&](const Variable &other) {
return &other == argvar || !mayDependOn(other.valueType(), argvar->valueType());
})) return false;
Expand Down

0 comments on commit c24067f

Please sign in to comment.