[poincare] Remove duplicate simplification interruption check

This commit is contained in:
Léa Saviot
2018-11-09 13:57:52 +01:00
committed by Émilie Feral
parent 58c995d63c
commit 71ba760b71

View File

@@ -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();