From 10a99aacc1937ebf241aabc67e0f5d6b16e4191e Mon Sep 17 00:00:00 2001 From: Alma Dejus Date: Sat, 28 Oct 2023 16:25:30 +0200 Subject: [PATCH] removed unessesary rubbish --- src/operands.cc | 14 -------------- src/operands.h | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/src/operands.cc b/src/operands.cc index 6b8487f..7bf1d70 100644 --- a/src/operands.cc +++ b/src/operands.cc @@ -32,20 +32,6 @@ std::string Const_double::get_postfix() const return s.str(); } -// Variable -Variable::Variable(std::string & n, double v) : name{n}, value{v} -{} - -double Variable::get_value() const -{ - return value; -} - -std::string Variable::get_postfix() const -{ - return name; -} - std::string Operand::get_infix() const { return get_postfix(); diff --git a/src/operands.h b/src/operands.h index 135a47f..5214e3d 100644 --- a/src/operands.h +++ b/src/operands.h @@ -45,18 +45,4 @@ private: double value; }; -class Variable : public Operand -{ -public: - Variable(std::string & n, double v); - - double get_value() const override; - std::string get_postfix() const override; - -protected: -private: - std::string name; - double value; -}; - #endif \ No newline at end of file -- 2.30.2