[poincare] Remove dummy defaultShallowReduce

Decimal and BasedInteger have no children
This commit is contained in:
Ruben Dashyan
2020-02-05 13:55:19 +01:00
committed by Léa Saviot
parent e4601206be
commit 2d5708c782
2 changed files with 0 additions and 10 deletions

View File

@@ -87,11 +87,6 @@ BasedInteger BasedInteger::Builder(const Integer & m, Integer::Base base) {
}
Expression BasedInteger::shallowReduce() {
Expression e = Expression::defaultShallowReduce();
if (e.isUndefined()) {
return e;
}
// this = e
// Turn BasedInteger into Rational
Integer numerator = node()->integer();
Integer denominator(1);

View File

@@ -448,11 +448,6 @@ Expression Decimal::setSign(ExpressionNode::Sign s) {
}
Expression Decimal::shallowReduce() {
Expression e = Expression::defaultShallowReduce();
if (e.isUndefined()) {
return e;
}
// this = e
int exp = node()->exponent();
Integer numerator = node()->signedMantissa();
/* To avoid uselessly big numerator and denominator, we get rid of useless 0s