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

@@ -260,7 +260,7 @@ public:
}
}
void SpellHit(Unit *caster, const SpellInfo *spell)
void SpellHit(Unit * /*caster*/, const SpellInfo *spell)
{
if (spell->Id == SPELL_POWER_SPARK_MALYGOS_BUFF)
{
@@ -274,7 +274,7 @@ public:
}
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.Reset();
DoZoneInCombat();
@@ -738,7 +738,7 @@ public:
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
me->MonsterYell("UNTHINKABLE! The mortals will destroy... e-everything... my sister... what have you-", LANG_UNIVERSAL, 0);
me->PlayDirectSound(SOUND_DEATH);
@@ -772,7 +772,7 @@ public:
}
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterEvadeMode()
{
@@ -853,7 +853,7 @@ public:
bool bUpdatedFlying;
float VORTEX_RADIUS;
void PassengerBoarded(Unit* pass, int8 seat, bool apply)
void PassengerBoarded(Unit* pass, int8 /*seat*/, bool apply)
{
if (pass && !apply && pass->GetTypeId() == TYPEID_PLAYER)
{
@@ -911,8 +911,8 @@ public:
timer -= diff;
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) { damage = 0; }
};
};
@@ -1040,7 +1040,7 @@ public:
EventMap events;
uint16 timer;
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
DoZoneInCombat();
events.Reset();
@@ -1180,8 +1180,8 @@ public:
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, me);
}
void MoveInLineOfSight(Unit* who) {}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void AttackStart(Unit* /*who*/) {}
};
};
@@ -1207,7 +1207,7 @@ public:
InstanceScript* pInstance;
EventMap events;
void PassengerBoarded(Unit *who, int8 seat, bool apply)
void PassengerBoarded(Unit *who, int8 /*seat*/, bool apply)
{
events.Reset();
if (!who)
@@ -1325,8 +1325,8 @@ public:
}
}
void MoveInLineOfSight(Unit* who) {}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void AttackStart(Unit* /*who*/) {}
};
};
@@ -1391,8 +1391,8 @@ public:
}
}
void MoveInLineOfSight(Unit* who) {}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void AttackStart(Unit* /*who*/) {}
};
};
@@ -1411,7 +1411,7 @@ public:
{
npc_eoe_wyrmrest_skytalonAI(Creature* pCreature) : VehicleAI(pCreature) { }
void PassengerBoarded(Unit* pass, int8 seat, bool apply)
void PassengerBoarded(Unit* pass, int8 /*seat*/, bool apply)
{
if (apply)
{

View File

@@ -244,7 +244,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)
{

View File

@@ -227,7 +227,7 @@ class spell_boss_magus_telestra_summon_telestra_clones : public SpellScriptLoade
return GetUnitOwner()->GetTypeId() == TYPEID_UNIT;
}
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->ToCreature()->AI()->Talk(SAY_SPLIT);
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_FIRE_MAGUS_SUMMON, true);
@@ -240,7 +240,7 @@ class spell_boss_magus_telestra_summon_telestra_clones : public SpellScriptLoade
}
void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
GetUnitOwner()->SetControlled(false, UNIT_STATE_STUNNED);

View File

@@ -90,7 +90,7 @@ class boss_ormorok : public CreatureScript
BossAI::JustDied(killer);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{

View File

@@ -70,7 +70,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
@@ -84,7 +84,7 @@ public:
events.RescheduleEvent(EVENT_SUMMON, 2000);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
Talk(SAY_DEATH);
@@ -103,13 +103,13 @@ public:
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
Talk(SAY_KILL);
}
void MoveInLineOfSight(Unit* who) {}
void JustSummoned(Creature* summon) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void JustSummoned(Creature* /*summon*/) {}
void UpdateAI(uint32 diff)
{
@@ -214,8 +214,8 @@ public:
PickNewLocation();
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(uint32 diff)
{

View File

@@ -88,7 +88,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
@@ -122,7 +122,7 @@ public:
events.RescheduleEvent(EVENT_SUMMON_WHELPS, 40000);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
Talk(SAY_DEATH);
@@ -132,7 +132,7 @@ public:
me->SummonGameObject(GO_SPOTLIGHT, 1018.06f, 1051.09f, 605.619019f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0);
}
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask)
void DamageTaken(Unit*, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask)
{
if( !me->GetMap()->IsHeroic() )
return;
@@ -144,12 +144,12 @@ public:
}
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
Talk(SAY_KILL);
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void JustSummoned(Creature* pSummon)
{

View File

@@ -107,7 +107,7 @@ public:
me->DisableRotate(false);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
@@ -121,7 +121,7 @@ public:
events.RescheduleEvent(EVENT_ENERGIZE_CORES_THIN, 0);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
Talk(SAY_DEATH);
@@ -139,8 +139,8 @@ public:
ScriptedAI::EnterEvadeMode();
}
void MoveInLineOfSight(Unit* who) {}
void JustSummoned(Creature* summon) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void JustSummoned(Creature* /*summon*/) {}
void UpdateAI(uint32 diff)
{

View File

@@ -262,7 +262,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)
{

View File

@@ -184,7 +184,7 @@ public:
bool JustSummoned;
uint16 despawnTimer;
void PassengerBoarded(Unit* who, int8 seatid, bool add)
void PassengerBoarded(Unit* /*who*/, int8 /*seatid*/, bool add)
{
if (add)
{
@@ -200,7 +200,7 @@ public:
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation());
me->DisappearAndDie();