Removed unreachable code

This commit is contained in:
Daniel Marjamäki 2018-05-14 22:50:30 +02:00
parent 66599b4ade
commit 29dc42ff67
1 changed files with 0 additions and 5 deletions

View File

@ -1409,11 +1409,6 @@ bool TemplateSimplifier::simplifyCalculations(Token *_tokens)
} }
} }
} }
// Division where result is a whole number
else if (Token::Match(tok->previous(), "* %num% /") &&
tok->str() == MathLib::multiply(tok->strAt(2), MathLib::divide(tok->str(), tok->strAt(2)))) {
tok->deleteNext(2);
}
else if (simplifyNumericCalculations(tok)) { else if (simplifyNumericCalculations(tok)) {
ret = true; ret = true;