diff --git a/OpenRA.Game/Traits/Mobile.cs b/OpenRA.Game/Traits/Mobile.cs index b09e7ac4d5..a6b69fca29 100644 --- a/OpenRA.Game/Traits/Mobile.cs +++ b/OpenRA.Game/Traits/Mobile.cs @@ -88,7 +88,6 @@ namespace OpenRA.Traits Shroud shroud; UnitInfluence uim; - bool canShareCell; public Mobile(ActorInitializer init, MobileInfo info) { @@ -97,7 +96,6 @@ namespace OpenRA.Traits shroud = self.World.WorldActor.Trait(); uim = self.World.WorldActor.Trait(); - canShareCell = self.HasTrait(); if (init.Contains()) { diff --git a/OpenRA.Mods.Cnc/ProductionAirdrop.cs b/OpenRA.Mods.Cnc/ProductionAirdrop.cs index f5478502a2..efc2c2faa3 100644 --- a/OpenRA.Mods.Cnc/ProductionAirdrop.cs +++ b/OpenRA.Mods.Cnc/ProductionAirdrop.cs @@ -51,7 +51,6 @@ namespace OpenRA.Mods.Cnc new AltitudeInit( Rules.Info["c17"].Traits.Get().CruiseAltitude ), }); - var cargo = a.Trait(); a.QueueActivity(new Fly(self.Location + new int2(6,0))); a.QueueActivity(new Land(Target.FromActor(self))); a.QueueActivity(new CallFunc(() => diff --git a/OpenRA.Mods.RA/WithMuzzleFlash.cs b/OpenRA.Mods.RA/WithMuzzleFlash.cs index 017229bb33..d68bfa55bd 100644 --- a/OpenRA.Mods.RA/WithMuzzleFlash.cs +++ b/OpenRA.Mods.RA/WithMuzzleFlash.cs @@ -26,7 +26,6 @@ namespace OpenRA.Mods.RA public WithMuzzleFlash(Actor self) { - var attackInfo = self.Info.Traits.Get(); var attack = self.Trait(); var render = self.Trait(); var facing = self.Trait();