From: Alma Dejus Date: Sat, 28 Oct 2023 14:25:30 +0000 (+0200) Subject: removed unessesary rubbish X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=10a99aacc1937ebf241aabc67e0f5d6b16e4191e;p=TDDC76.git removed unessesary rubbish --- 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