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

@@ -81,10 +81,10 @@ namespace OpenRA.Mods.Common.Traits
OnExitedDropRange(self);
// Are we able to drop the next trooper?
if (!inDropRange || cargo.IsEmpty(self) || !self.World.Map.Contains(self.Location))
if (!inDropRange || cargo.IsEmpty() || !self.World.Map.Contains(self.Location))
return;
var dropActor = cargo.Peek(self);
var dropActor = cargo.Peek();
var dropPositionable = dropActor.Trait<IPositionable>();
var dropCell = self.Location;
var dropSubCell = dropPositionable.GetAvailableSubCell(dropCell);