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

@@ -167,7 +167,7 @@ public:
events.ScheduleEvent(EVENT_DIREBREW_RESPAWN2, 10000);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
summons.DespawnAll();
summons.DoAction(ACTION_RELEASE_LOOT);
@@ -299,7 +299,7 @@ public:
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (me->GetEntry() == NPC_URSULA_DIREBREW)
events.ScheduleEvent(EVENT_SISTERS_BARREL, 18000);
@@ -452,7 +452,7 @@ class npc_brewfest_keg_reciver : public CreatureScript
return new npc_brewfest_keg_reciverAI(creature);
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
bool OnGossipSelect(Player* player, Creature* /*creature*/, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -549,7 +549,7 @@ class npc_brewfest_bark_trigger : public CreatureScript
}
}
std::string GetTextFor(uint32 entry, uint32 questId)
std::string GetTextFor(uint32 /*entry*/, uint32 questId)
{
std::string str = "";
switch (questId)
@@ -680,7 +680,7 @@ class npc_dark_iron_attack_generator : public CreatureScript
}
// DARK IRON ATTACK EVENT
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterCombat(Unit*) {}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
@@ -1047,7 +1047,7 @@ class npc_dark_iron_guzzler : public CreatureScript
who->CastSpell(who, SPELL_REPORT_DEATH, true);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (me->IsAlive() && spellInfo->Id == SPELL_PLAYER_MUG)
{
@@ -1093,7 +1093,7 @@ class npc_brewfest_super_brew_trigger : public CreatureScript
uint32 timer;
void EnterCombat(Unit*) {}
void MoveInLineOfSight(Unit* who)
void MoveInLineOfSight(Unit* /*who*/)
{
}

View File

@@ -333,7 +333,7 @@ class spell_hallows_end_base_fire : public SpellScriptLoader
}
}
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
target->SetObjectScale(0.5f);
@@ -493,7 +493,7 @@ public:
return true;
}
bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest)
bool OnQuestAccept(Player* /*player*/, Creature* creature, Quest const* quest)
{
if ((quest->GetQuestId() == QUEST_LET_THE_FIRES_COME_A || quest->GetQuestId() == QUEST_LET_THE_FIRES_COME_H) && !creature->AI()->GetData(DATA_ALLOW_START))
creature->AI()->DoAction(ACTION_START_EVENT);
@@ -523,7 +523,7 @@ class npc_soh_fire_trigger : public CreatureScript
me->SetDisableGravity(true);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_START_FIRE)
{
@@ -584,7 +584,7 @@ class npc_hallows_end_soh : public CreatureScript
std::list<uint64> unitList;
int32 pos;
void EnterCombat(Unit*) {}
void MoveInLineOfSight(Unit* who){}
void MoveInLineOfSight(Unit* /*who*/){}
void DoAction(int32 param)
{
@@ -739,7 +739,7 @@ class npc_hallows_end_soh : public CreatureScript
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
me->MonsterYell("So eager you are, for my blood to spill. Yet to vanquish me, 'tis my head you must kill!", LANG_UNIVERSAL, 0);
me->PlayDirectSound(11969);
@@ -904,7 +904,7 @@ class boss_headless_horseman : public CreatureScript
uint8 phase;
uint32 health;
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
summons.DespawnAll();
me->MonsterSay("This end have I reached before. What new adventure lies in store?", LANG_UNIVERSAL, 0);
@@ -920,7 +920,7 @@ class boss_headless_horseman : public CreatureScript
sLFGMgr->FinishDungeon(players.begin()->GetSource()->GetGroup()->GetGUID(), 285, me->FindMap());
}
void KilledUnit(Unit* who)
void KilledUnit(Unit* /*who*/)
{
me->MonsterYell("Your body lies beaten, battered and broken. Let my curse be your own, fate has spoken.", LANG_UNIVERSAL, 0);
me->PlayDirectSound(SOUND_SLAY);
@@ -940,7 +940,7 @@ class boss_headless_horseman : public CreatureScript
}
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_THROW_HEAD_BACK)
{
@@ -985,7 +985,7 @@ class boss_headless_horseman : public CreatureScript
Player* GetRhymePlayer() { return playerGUID ? ObjectAccessor::GetPlayer(*me, playerGUID) : NULL; }
void EnterCombat(Unit*) { me->SetInCombatWithZone(); }
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask)
{
@@ -1174,7 +1174,7 @@ class boss_headless_horseman_head : public CreatureScript
uint32 timer;
bool handled;
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo)
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_THROW_HEAD_BACK)
{
@@ -1311,7 +1311,7 @@ class boss_headless_horseman_pumpkin : public CreatureScript
me->CastSpell(me, SPELL_PUMPKIN_VISUAL, true);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_SPROUTING)
{

View File

@@ -21,7 +21,7 @@ class go_midsummer_bonfire : public GameObjectScript
public:
go_midsummer_bonfire() : GameObjectScript("go_midsummer_bonfire") { }
bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 action)
bool OnGossipSelect(Player* player, GameObject* /*go*/, uint32 /*sender*/, uint32 /*action*/)
{
player->CLOSE_GOSSIP_MENU();
// we know that there is only one gossip.
@@ -274,7 +274,7 @@ public:
{
PrepareAuraScript(spell_midsummer_ribbon_pole_AuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
PreventDefaultAction();
if (Unit *target = GetTarget())

View File

@@ -102,10 +102,10 @@ class npc_pilgrims_bounty_chair : public CreatureScript
me->SetReactState(REACT_PASSIVE);
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void AttackStart(Unit*) {}
void PassengerBoarded(Unit* who, int8 seatId, bool apply)
void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply)
{
if (apply && who->GetTypeId() == TYPEID_PLAYER)
who->ToPlayer()->SetClientControl(me, 0, true);
@@ -200,7 +200,7 @@ class npc_pilgrims_bounty_chair : public CreatureScript
charm->ToCreature()->AI()->DoAction(spellInfo->Id);
}
void SpellHit(Unit* target, const SpellInfo* spellInfo)
void SpellHit(Unit* /*target*/, const SpellInfo* spellInfo)
{
switch (spellInfo->Id)
{
@@ -284,7 +284,7 @@ class npc_pilgrims_bounty_plate : public CreatureScript
{
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
switch (spellInfo->Id)
{