Remove unused parameters and variables.

This commit is contained in:
Matthias Mailänder
2021-12-05 13:27:29 +01:00
committed by abcdefg30
parent 07815143f1
commit 9d905d8291
31 changed files with 54 additions and 59 deletions

View File

@@ -73,7 +73,7 @@ namespace OpenRA.Mods.Common.Activities
if (enterLegacyHut != null)
enterLegacyHut.Repair(self);
else if (enterHut != null)
enterHut.Repair(enterActor, self);
enterHut.Repair(self);
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", notification, self.Owner.Faction.InternalName);

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Activities
if (targetActor != enterActor)
return;
if (!enterCargo.CanLoad(enterActor, self))
if (!enterCargo.CanLoad(self))
return;
enterCargo.Load(enterActor, self);

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Activities
public bool SkipMakeAnims = false;
public string Faction = null;
public Transform(Actor self, string toActor)
public Transform(string toActor)
{
ToActor = toActor;
}

View File

@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Activities
public override bool Tick(Actor self)
{
if (IsCanceling || cargo.IsEmpty(self))
if (IsCanceling || cargo.IsEmpty())
return true;
if (cargo.CanUnload())
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Activities
foreach (var inu in notifiers)
inu.Unloading(self);
var actor = cargo.Peek(self);
var actor = cargo.Peek();
var spawn = self.CenterPosition;
var exitSubCell = ChooseExitSubCell(actor);