Merge pull request #518 from Dmitry-Me/removeRedundantCode

Remove completely redundant code
This commit is contained in:
amai2012 2015-02-11 17:17:15 +01:00
commit baba720e58
1 changed files with 0 additions and 5 deletions

View File

@ -93,11 +93,6 @@ bool CheckCondition::assignIfParseScope(const Token * const assignTok,
mismatchingBitAndError(assignTok, num, tok2, num2);
}
if (Token::Match(tok2, "%varid% =", varid)) {
if ((bitop == '&') && Token::Match(tok2->tokAt(2), "%varid% %cop% %num% ;", varid) && tok2->strAt(3) == std::string(1U, bitop)) {
const MathLib::bigint num2 = MathLib::toLongNumber(tok2->strAt(4));
if (0 == (num & num2))
mismatchingBitAndError(assignTok, num, tok2, num2);
}
return true;
}
if (Token::Match(tok2, "++|-- %varid%", varid) || Token::Match(tok2, "%varid% ++|--", varid))