mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Command: Dead code removal
This commit is contained in:
parent
e8fe6ef773
commit
92f79c682b
2 changed files with 0 additions and 44 deletions
|
@ -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 ()
|
||||
{
|
||||
|
|
|
@ -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*>&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue