Fixed all unused-parameters warnings

issue #121

used clang-tidy to achieve this
This commit is contained in:
Yehonal
2017-09-18 14:23:26 +02:00
parent aa87ec685b
commit 2b2e299ccc
229 changed files with 643 additions and 643 deletions

View File

@@ -127,7 +127,7 @@ class go_arena_ready_marker : public GameObjectScript
public:
go_arena_ready_marker() : GameObjectScript("go_arena_ready_marker") { }
bool OnGossipHello(Player* player, GameObject *go)
bool OnGossipHello(Player* player, GameObject * /*go*/)
{
if (Battleground* bg = player->GetBattleground())
bg->ReadyMarkerClicked(player);
@@ -273,19 +273,19 @@ public:
go->SummonCreature(NPC_WINTERFIN_TADPOLE, go->GetPositionX()+cos(2*M_PI*i/3.0f)*0.60f, go->GetPositionY()+sin(2*M_PI*i/3.0f)*0.60f, go->GetPositionZ()+0.5f, go->GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 30000);
}
void OnStateChanged(uint32 state, Unit* unit)
void OnStateChanged(uint32 state, Unit* /*unit*/)
{
if (requireSummon == 1 && state == GO_READY)
requireSummon = 2;
}
void UpdateAI(uint32 diff)
void UpdateAI(uint32 /*diff*/)
{
if (go->isSpawned() && requireSummon == 2)
SummonTadpoles();
}
bool GossipHello(Player* player, bool reportUse)
bool GossipHello(Player* player, bool /*reportUse*/)
{
if (requireSummon)
return false;

View File

@@ -1155,7 +1155,7 @@ public:
return true;
}
void SendActionMenu(Player* player, GameObject* gameobject, uint32 uiAction)
void SendActionMenu(Player* player, GameObject* /*gameobject*/, uint32 uiAction)
{
switch(uiAction)
{

View File

@@ -156,7 +156,7 @@ public:
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
bool OnGossipSelect(Player* player, Creature* /*creature*/, uint32 /*sender*/, uint32 action)
{
player->PlayerTalkClass->ClearMenus();
switch (action)

View File

@@ -181,7 +181,7 @@ public:
return true;
}
bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 opt)
bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/)
{
if (!creature->AI()->GetData(DATA_DERBY_FINISHED) && quest->GetQuestId() == QUEST_FISHING_DERBY)
{
@@ -290,7 +290,7 @@ public:
return true;
}
bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 opt)
bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/)
{
if (!creature->AI()->GetData(DATA_ANGLER_FINISHED) && quest->GetQuestId() == QUEST_MASTER_ANGLER)
{