diff --git a/OpenRA.Editor/Surface.cs b/OpenRA.Editor/Surface.cs index f95265782d..8abac5d5ee 100755 --- a/OpenRA.Editor/Surface.cs +++ b/OpenRA.Editor/Surface.cs @@ -439,10 +439,6 @@ namespace OpenRA.Editor float OffsetY = t.Centered ? t.Bitmap.Height / 2 - TileSet.TileSize / 2 : 0; float DrawY = TileSet.TileSize * p.Y * Zoom + Offset.Y - OffsetY; - float width = t.Bitmap.Width * Zoom; - float height = t.Bitmap.Height * Zoom; - RectangleF sourceRect = new RectangleF(0, 0, t.Bitmap.Width, t.Bitmap.Height); - RectangleF destRect = new RectangleF(DrawX, DrawY, width, height); g.DrawRectangle(CordonPen, DrawX, DrawY, t.Bitmap.Width * Zoom, t.Bitmap.Height * Zoom); diff --git a/OpenRA.Game/World.cs b/OpenRA.Game/World.cs index 0af671db81..90496cffcc 100644 --- a/OpenRA.Game/World.cs +++ b/OpenRA.Game/World.cs @@ -194,7 +194,6 @@ namespace OpenRA readonly World world; public readonly Cache OwnedBy; - readonly TypeDictionary hasTrait = new TypeDictionary(); public AllQueries( World world ) { diff --git a/OpenRA.Mods.RA/Render/RenderBuilding.cs b/OpenRA.Mods.RA/Render/RenderBuilding.cs index 0218ff065d..c0eed39458 100755 --- a/OpenRA.Mods.RA/Render/RenderBuilding.cs +++ b/OpenRA.Mods.RA/Render/RenderBuilding.cs @@ -77,7 +77,6 @@ namespace OpenRA.Mods.RA.Render public void PlayCustomAnimBackwards(Actor self, string name, Action a) { - var hasSequence = anim.HasSequence(NormalizeSequence(self, name)); anim.PlayBackwardsThen(NormalizeSequence(self, name), () => { anim.PlayRepeating(NormalizeSequence(self, "idle")); a(); }); }