Removed unused parameter from several functions in FStateDefinitions class

src/p_states.cpp:724:54: warning: parameter ‘actor’ set but not used [-Wunused-but-set-parameter]
https://forum.zdoom.org/viewtopic.php?t=58364
This commit is contained in:
alexey.lysiuk 2017-11-05 13:15:42 +02:00
commit 274951839a
3 changed files with 13 additions and 17 deletions

View file

@ -322,18 +322,16 @@ bool PClassActor::SetReplacement(FName replaceName)
void AActor::Finalize(FStateDefinitions &statedef)
{
AActor *defaults = this;
try
{
statedef.FinishStates(GetClass(), defaults);
statedef.FinishStates(GetClass());
}
catch (CRecoverableError &)
{
statedef.MakeStateDefines(nullptr);
throw;
}
statedef.InstallStates(GetClass(), defaults);
statedef.InstallStates(GetClass(), this);
statedef.MakeStateDefines(nullptr);
}