From 706adb6d0b71f49f7d99c33bca05417fcc156049 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 9 Sep 2010 21:14:21 +1200 Subject: [PATCH] Remove cruft --- OpenRA.Game/Traits/Mobile.cs | 2 -- OpenRA.Mods.Cnc/ProductionAirdrop.cs | 1 - OpenRA.Mods.RA/WithMuzzleFlash.cs | 1 - 3 files changed, 4 deletions(-) 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();