[poincare/addition] Addition has no Unit

This commit is contained in:
Ruben Dashyan
2020-03-16 14:57:25 +01:00
committed by Émilie Feral
parent 121e16a6a5
commit 2fea3c9b3a
2 changed files with 0 additions and 6 deletions

View File

@@ -35,7 +35,6 @@ public:
template<typename T> static MatrixComplex<T> computeOnComplexAndMatrix(const std::complex<T> c, const MatrixComplex<T> m, Preferences::ComplexFormat complexFormat) {
return MatrixComplex<T>::Undefined();
}
Expression getUnit() const override;
// Simplification
LayoutShape leftLayoutShape() const override {

View File

@@ -29,11 +29,6 @@ int AdditionNode::getPolynomialCoefficients(Context * context, const char * symb
return Addition(this).getPolynomialCoefficients(context, symbolName, coefficients, symbolicComputation);
}
Expression AdditionNode::getUnit() const {
// The expression is reduced, so we can just ask the unit of the first child
return childAtIndex(0)->getUnit();
}
// Layout
Layout AdditionNode::createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const {