diff --git a/SubCommand.cpp b/SubCommand.cpp index d99202b..3c84998 100644 --- a/SubCommand.cpp +++ b/SubCommand.cpp @@ -2,7 +2,7 @@ #include namespace commands { - SubCommand::SubCommand(const string& name, const bool show_result): name(name), show_result(show_result) {} + SubCommand::SubCommand(const string& indicator, const bool show_result): name(indicator), show_result(show_result) {} void SubCommand::run(stringstream& args) { cout << "Not impl!\n"; @@ -12,10 +12,6 @@ namespace commands { return this->name; } - int SubCommand::get_value() const { - return this->return_value; - } - bool SubCommand::should_display_result() const { return this->show_result; diff --git a/SubCommand.h b/SubCommand.h index 9d0e358..6862d0c 100644 --- a/SubCommand.h +++ b/SubCommand.h @@ -12,9 +12,8 @@ namespace commands bool show_result; public: - SubCommand(const string& indicator, const bool show_result); + SubCommand(const string& indicator, bool show_result); string get_name(); - int get_value() const; bool should_display_result() const; virtual void run(stringstream& args); };