cleanup: removed redundant insideLoop assignment in checkunusedvar. Thank you zingsheim for the suggestion

This commit is contained in:
Daniel Marjamäki 2012-12-02 07:28:05 +01:00
parent b216639069
commit dba51c906e
1 changed files with 0 additions and 4 deletions

View File

@ -643,10 +643,6 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const
}
}
if (scope->classDef->str() == "for" || scope->classDef->str() == "while") {
insideLoop = true;
}
// Check variable usage
for (const Token *tok = scope->classDef->next(); tok && tok != scope->classEnd; tok = tok->next()) {
if (tok->str() == "for" || tok->str() == "while" || tok->str() == "do") {