From 71ba760b714217298e08e9fcd7b2a218a3b6e665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Fri, 9 Nov 2018 13:57:52 +0100 Subject: [PATCH] [poincare] Remove duplicate simplification interruption check --- poincare/src/expression.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/poincare/src/expression.cpp b/poincare/src/expression.cpp index 7f85b0e41..99f04ef9d 100644 --- a/poincare/src/expression.cpp +++ b/poincare/src/expression.cpp @@ -312,9 +312,6 @@ Expression Expression::ParseAndSimplify(const char * text, Context & context, Pr Expression Expression::simplify(Context & context, Preferences::AngleUnit angleUnit, bool replaceSymbols) { sSimplificationHasBeenInterrupted = false; Expression e = reduce(context, angleUnit, replaceSymbols); - if (sSimplificationHasBeenInterrupted) { - return Expression(); - } e = e.deepBeautify(context, angleUnit); if (sSimplificationHasBeenInterrupted) { return Expression();