mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 23:16:38 +00:00
Removed unused functions ai::command_history_item::set_number/set_command.
This commit is contained in:
parent
e4442ea156
commit
abad9f00be
@ -257,13 +257,6 @@ const std::string holder::get_ai_identifier() const
|
||||
// AI COMMAND HISTORY ITEM
|
||||
// =======================================================================
|
||||
|
||||
command_history_item::command_history_item()
|
||||
: number_(0), command_()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
command_history_item::command_history_item( side_number number, const std::string& command )
|
||||
: number_(number), command_(command)
|
||||
{
|
||||
@ -271,34 +264,17 @@ command_history_item::command_history_item( side_number number, const std::strin
|
||||
}
|
||||
|
||||
|
||||
command_history_item::~command_history_item()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
int command_history_item::get_number() const
|
||||
{
|
||||
return this->number_;
|
||||
}
|
||||
|
||||
|
||||
void command_history_item::set_number( int number )
|
||||
{
|
||||
this->number_ = number;
|
||||
}
|
||||
|
||||
const std::string& command_history_item::get_command() const
|
||||
{
|
||||
return this->command_;
|
||||
}
|
||||
|
||||
|
||||
void command_history_item::set_command( const std::string& command )
|
||||
{
|
||||
this->command_ = command;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// LIFECYCLE
|
||||
// =======================================================================
|
||||
|
@ -97,10 +97,8 @@ public:
|
||||
command_history_item(int number, const std::string& command);
|
||||
|
||||
int get_number() const;
|
||||
void set_number(int number);
|
||||
|
||||
const std::string& get_command() const;
|
||||
void set_command(const std::string& command);
|
||||
|
||||
private:
|
||||
int number_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user