mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 01:53:47 +00:00
Fixed all unused-parameters warnings
issue #121 used clang-tidy to achieve this
This commit is contained in:
@@ -131,7 +131,7 @@ public:
|
||||
Talk(SAY_DEATH);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (!urand(0,1))
|
||||
return;
|
||||
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (!urand(0,1))
|
||||
return;
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
Talk(SAY_DEATH);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (!urand(0,1))
|
||||
return;
|
||||
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
Talk(SAY_DEATH);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (!urand(0,1))
|
||||
return;
|
||||
|
||||
@@ -1409,7 +1409,7 @@ class npc_cos_chromie_start : public CreatureScript
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/)
|
||||
{
|
||||
// final menu id, show crates if hidden and add item if missing
|
||||
if (player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 9595)
|
||||
@@ -1457,7 +1457,7 @@ class npc_cos_chromie_middle : public CreatureScript
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/)
|
||||
{
|
||||
if (!creature->GetInstanceScript() || creature->GetInstanceScript()->GetData(DATA_ARTHAS_EVENT) != COS_PROGRESS_CRATES_FOUND)
|
||||
return true;
|
||||
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 1000);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/)
|
||||
{
|
||||
GossipMenuItemData const* gossipMenuItemData = player->PlayerTalkClass->GetGossipMenu().GetItemData(0);
|
||||
InstanceScript* instance = creature->GetInstanceScript();
|
||||
@@ -853,7 +853,7 @@ public:
|
||||
return GetInstanceAI<npc_tarethaAI>(creature);
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
bool OnGossipHello(Player* /*player*/, Creature* /*creature*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -867,7 +867,7 @@ public:
|
||||
|
||||
InstanceScript* instance;
|
||||
|
||||
void DoAction(int32 param)
|
||||
void DoAction(int32 /*param*/)
|
||||
{
|
||||
me->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
me->RemoveAllAuras();
|
||||
|
||||
@@ -133,7 +133,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
void SetData(uint32 type, uint32 /*data*/)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -193,7 +193,7 @@ public:
|
||||
me->GetMap()->ToInstanceMap()->PermBindAllPlayers();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who)
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
DoZoneInCombat();
|
||||
@@ -208,13 +208,13 @@ public:
|
||||
BindPlayers();
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if( m_pInstance )
|
||||
m_pInstance->SetData(DATA_ONYXIA, DONE);
|
||||
}
|
||||
|
||||
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask)
|
||||
void DamageTaken(Unit*, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask)
|
||||
{
|
||||
switch( Phase )
|
||||
{
|
||||
@@ -645,8 +645,8 @@ public:
|
||||
{
|
||||
npc_onyxia_triggerAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void UpdateAI(uint32 diff) {}
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
void UpdateAI(uint32 /*diff*/) {}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
OUT_LOAD_INST_DATA_COMPLETE;
|
||||
}
|
||||
|
||||
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
|
||||
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
|
||||
{
|
||||
switch(criteria_id)
|
||||
{
|
||||
|
||||
@@ -133,7 +133,7 @@ class spell_zulfarrak_unlocking : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_zulfarrak_unlocking_SpellScript);
|
||||
|
||||
void HandleOpenLock(SpellEffIndex effIndex)
|
||||
void HandleOpenLock(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
GameObject* cage = GetHitGObj();
|
||||
std::list<WorldObject*> cagesList;
|
||||
|
||||
Reference in New Issue
Block a user