From 92f79c682b80d7013f9127a1ac527ca414a07474 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 17 Jul 2015 13:18:19 -0400 Subject: [PATCH] Command: Dead code removal --- src/commands/Command.cpp | 41 ---------------------------------------- src/commands/Command.h | 3 --- 2 files changed, 44 deletions(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index a3e2c336b..b07313b9f 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -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 () { diff --git a/src/commands/Command.h b/src/commands/Command.h index d62c61446..65828e135 100644 --- a/src/commands/Command.h +++ b/src/commands/Command.h @@ -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 &);