From 3a1656c3dd8fce967f2d3ebcb638aa3715bb522a Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 6 Jan 2019 02:52:19 +0100 Subject: [PATCH] Remove unused BuildUnit overload from UnitBuilderBotModule Unused and didn't check things like Buildable, so better just remove it. --- .../Traits/BotModules/UnitBuilderBotModule.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/BotModules/UnitBuilderBotModule.cs b/OpenRA.Mods.Common/Traits/BotModules/UnitBuilderBotModule.cs index eb5137d195..9802fcbc11 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/UnitBuilderBotModule.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/UnitBuilderBotModule.cs @@ -126,16 +126,6 @@ namespace OpenRA.Mods.Common.Traits bot.QueueOrder(Order.StartProduction(queue.Actor, name, 1)); } - void BuildUnit(IBot bot, string category, string name) - { - var queue = AIUtils.FindQueues(player, category).FirstOrDefault(q => !q.AllQueued().Any()); - if (queue == null) - return; - - if (world.Map.Rules.Actors[name] != null) - bot.QueueOrder(Order.StartProduction(queue.Actor, name, 1)); - } - // In cases where we want to build a specific unit but don't know the queue name (because there's more than one possibility) void BuildUnit(IBot bot, string name) {