From 29dc42ff67fee99b8c25e7273f41b655e7c317b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 14 May 2018 22:50:30 +0200 Subject: [PATCH] Removed unreachable code --- lib/templatesimplifier.cpp | 5 ----- 1 file changed, 5 deletions(-) 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;