diff --git a/poincare/src/unit.cpp b/poincare/src/unit.cpp index 9011a8224..2fa6ca495 100644 --- a/poincare/src/unit.cpp +++ b/poincare/src/unit.cpp @@ -127,13 +127,8 @@ Unit::Dimension::Vector UnitNode::Dimension::Vector::FromBaseU factor = factor.childAtIndex(0); } - // FIXME Remove this once this case may not occur anymore - // The leading factors may not be of Unit type - if (factor.type() != ExpressionNode::Type::Unit) { - continue; - } - // Fill the vector with the unit's exponent + assert(factor.type() == ExpressionNode::Type::Unit); const ptrdiff_t indexInTable = static_cast(factor.node())->dimension() - Unit::DimensionTable; assert(0 <= indexInTable && indexInTable < NumberOfBaseUnits); vector.setCoefficientAtIndex(indexInTable, exponent);