Skip to content

Commit

Permalink
[Playerbot] Remove unused constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
PargeLenis committed Feb 7, 2023
1 parent 03d166e commit bb74c98
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions src/modules/Bots/playerbot/PlayerbotAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ void PacketHandlingHelper::AddPacket(const WorldPacket& packet)
}
}


PlayerbotAI::PlayerbotAI() : PlayerbotAIBase(), bot(NULL), aiObjectContext(NULL),
currentEngine(NULL), chatHelper(this), chatFilter(this), accountId(0), security(NULL), master(NULL)
{
for (int i = 0 ; i < BOT_STATE_MAX; i++)
{
engines[i] = NULL;
}
}

PlayerbotAI::PlayerbotAI(Player* bot) :
PlayerbotAIBase(), chatHelper(this), chatFilter(this), security(bot), master(NULL),
accountId(sObjectMgr.GetPlayerAccountIdByGUID(bot->GetObjectGuid()))
Expand Down
1 change: 0 additions & 1 deletion src/modules/Bots/playerbot/PlayerbotAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ class ChatCommandHolder
class PlayerbotAI : public PlayerbotAIBase
{
public:
PlayerbotAI();
PlayerbotAI(Player* bot);
virtual ~PlayerbotAI();

Expand Down
4 changes: 0 additions & 4 deletions src/modules/Bots/playerbot/PlayerbotAIConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ using namespace std;

INSTANTIATE_SINGLETON_1(PlayerbotAIConfig);

PlayerbotAIConfig::PlayerbotAIConfig()
{
}

template <class T>
void LoadList(const string& value, T &list)
{
Expand Down
1 change: 0 additions & 1 deletion src/modules/Bots/playerbot/PlayerbotAIConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ChatHandler;
class PlayerbotAIConfig
{
public:
PlayerbotAIConfig();
static PlayerbotAIConfig& instance()
{
static PlayerbotAIConfig instance;
Expand Down

0 comments on commit bb74c98

Please sign in to comment.