Cleanup: Removed redundant simplification in checkmemoryleak.cpp

This commit is contained in:
Daniel Marjamäki 2010-04-03 20:47:38 +02:00
parent 6acb304ef2
commit a8f566bfcd
1 changed files with 0 additions and 7 deletions

View File

@ -1379,13 +1379,6 @@ void CheckMemoryLeakInFunction::simplifycode(Token *tok, bool &all)
done = false;
}
// Delete "if ; else ;"
else if (Token::simpleMatch(tok2->next(), "if ; else ;"))
{
Token::eraseTokens(tok2, tok2->tokAt(4));
done = false;
}
// Reduce "if X ; else X ;" => "X ;"
else if (Token::Match(tok2->next(), "if %var% ; else %var% ;") &&
std::string(tok2->strAt(2)) == std::string(tok2->strAt(5)))