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

@@ -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);