Remove completely redundant code
This commit is contained in:
parent
efd2f51cba
commit
77aa385384
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue