diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index f9035e9a3..e885b7326 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -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)) { ret = true;