From d9e0559c7a0116662a4b1a7850528f48856b54c6 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 21 Jun 2014 19:25:35 +1200 Subject: [PATCH] Remove some long-dead code. --- OpenRA.Mods.RA/Player/ProductionQueue.cs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index e4982838d7..f6284fd517 100644 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -151,24 +151,14 @@ namespace OpenRA.Mods.RA x.Traits.Get().Queue.Contains(category)); } - public void OverrideProduction(ActorInfo type, bool buildable) - { - produceable[type].Buildable = buildable; - produceable[type].Sticky = true; - } - public void PrerequisitesAvailable(string key) { - var ps = produceable[self.World.Map.Rules.Actors[key]]; - if (!ps.Sticky) - ps.Buildable = true; + produceable[self.World.Map.Rules.Actors[key]].Buildable = true; } public void PrerequisitesUnavailable(string key) { - var ps = produceable[self.World.Map.Rules.Actors[key]]; - if (!ps.Sticky) - ps.Buildable = false; + produceable[self.World.Map.Rules.Actors[key]].Buildable = false; } public void PrerequisitesItemHidden(string key) @@ -366,7 +356,6 @@ namespace OpenRA.Mods.RA { public bool Visible = false; public bool Buildable = false; - public bool Sticky = false; } public class ProductionItem