From dade84db85b470d1124425510db45e34993903dc Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 20 Apr 2016 16:36:27 +0100 Subject: [PATCH] Remove leftover dead fragile alliances code. --- .../Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs index 1557b00866..ba6728b7a2 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs @@ -64,14 +64,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic } } - var diplomacy = widget.GetOrNull("DIPLOMACY_BUTTON"); - if (diplomacy != null) - { - diplomacy.Visible = !world.Map.Visibility.HasFlag(MapVisibility.MissionSelector) && world.Players.Any(a => a != world.LocalPlayer && !a.NonCombatant); - diplomacy.IsDisabled = () => disableSystemButtons; - diplomacy.OnClick = () => OpenMenuPanel(diplomacy); - } - var debug = widget.GetOrNull("DEBUG_BUTTON"); if (debug != null) {