Command: Dead code removal

This commit is contained in:
Paul Beckingham 2015-07-17 13:18:19 -04:00
parent e8fe6ef773
commit 92f79c682b
2 changed files with 0 additions and 44 deletions

View file

@ -206,47 +206,6 @@ Command::Command ()
{
}
////////////////////////////////////////////////////////////////////////////////
Command::Command (const Command& other)
{
_usage = other._usage;
_description = other._description;
_read_only = other._read_only;
_displays_id = other._displays_id;
_needs_confirm = other._needs_confirm;
_permission_quit = other._permission_quit;
_permission_all = other._permission_all;
_first_iteration = other._first_iteration;
}
////////////////////////////////////////////////////////////////////////////////
Command& Command::operator= (const Command& other)
{
if (this != &other)
{
_usage = other._usage;
_description = other._description;
_read_only = other._read_only;
_displays_id = other._displays_id;
_needs_confirm = other._needs_confirm;
_permission_quit = other._permission_quit;
_permission_all = other._permission_all;
_first_iteration = other._first_iteration;
}
return *this;
}
////////////////////////////////////////////////////////////////////////////////
bool Command::operator== (const Command& other) const
{
return _usage == other._usage &&
_description == other._description &&
_read_only == other._read_only &&
_displays_id == other._displays_id &&
_needs_confirm == other._needs_confirm;
}
////////////////////////////////////////////////////////////////////////////////
Command::~Command ()
{

View file

@ -36,9 +36,6 @@ class Command
{
public:
Command ();
Command (const Command&);
Command& operator= (const Command&);
bool operator== (const Command&) const; // TODO Is this necessary?
virtual ~Command ();
static void factory (std::map <std::string, Command*>&);