From 77d506028dadc8db1affc38ec4b1ae1d5267d20f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 2 Aug 2018 16:28:50 +0200 Subject: [PATCH] [poicnare] Clean --- .../include/poincare/expression_reference.h | 91 +------------------ 1 file changed, 1 insertion(+), 90 deletions(-) diff --git a/poincare/include/poincare/expression_reference.h b/poincare/include/poincare/expression_reference.h index dd49e1245..56505ae24 100644 --- a/poincare/include/poincare/expression_reference.h +++ b/poincare/include/poincare/expression_reference.h @@ -140,95 +140,6 @@ private: double brentRoot(char symbol, double ax, double bx, double precision, EvaluationAtAbscissa evaluation, Context & context, Preferences::AngleUnit angleUnit, const ExpressionReference expression) const; }; - - -/* -class UndefinedNode : public ExpressionNode { -public: - // ExpressionNode - Type type() const override { return Type::Undefined; } - EvaluationReference approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - EvaluationReference approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override; - int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override; - - // TreeNode - size_t size() const override { return sizeof(UndefinedNode); } - const char * description() const override { return "Allocation Failed"; } - int numberOfChildren() const override { return 0; } - bool isAllocationFailure() const override { return true; } -}; - -class SymbolNode : public ExpressionNode { -public: - bool isApproximate(Context & context) const; - bool isMatrixSymbol() const; - char name() const; - // ExpressionNode - Type type() const override { return Type::Undefined; } - EvaluationReference approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - EvaluationReference approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override; - int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override; - - // TreeNode - size_t size() const override { return sizeof(UndefinedNode); } - const char * description() const override { return "Allocation Failed"; } - int numberOfChildren() const override { return 0; } - bool isAllocationFailure() const override { return true; } -}; - -class RationalNode : public ExpressionNode { -public: - // ExpressionNode - Type type() const override { return Type::Rational; } - EvaluationReference approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - Evaluation * approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override; - int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override; - - // TreeNode - size_t size() const override { return sizeof(UndefinedNode); } - const char * description() const override { return "Allocation Failed"; } - int numberOfChildren() const override { return 0; } - bool isAllocationFailure() const override { return true; } -}; - -class OppositeNode : public ExpressionNode { -public: - // ExpressionNode - Type type() const override { return Type::Opposite; } - Evaluation * approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - Evaluation * approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex::Undefined().storeEvaluation(); } - LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override; - int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override; - - // TreeNode - size_t size() const override { return sizeof(UndefinedNode); } - const char * description() const override { return "Allocation Failed"; } - int numberOfChildren() const override { return 0; } - bool isAllocationFailure() const override { return true; } -}; - - -typedef ExpressionReference UndefinedRef; -typedef ExpressionReference SymbolRef; -class RationalRef : public ExpressionReference { -public: - RationalRef(int i) : - ExpressionReference() - { - } -}; - -class OppositeRef : public ExpressionReference { -public: - OppositeRef(ExpressionReference child) : - ExpressionReference() - { - } -}; -*/ } -#endif +#endif \ No newline at end of file