Remove completely redundant code

This commit is contained in:
Dmitry-Me 2015-02-10 13:52:04 +03:00
parent efd2f51cba
commit 77aa385384
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); mismatchingBitAndError(assignTok, num, tok2, num2);
} }
if (Token::Match(tok2, "%varid% =", varid)) { 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; return true;
} }
if (Token::Match(tok2, "++|-- %varid%", varid) || Token::Match(tok2, "%varid% ++|--", varid)) if (Token::Match(tok2, "++|-- %varid%", varid) || Token::Match(tok2, "%varid% ++|--", varid))