From 5b8334b26d570410c2b3f4e85f6bdb01de9843b0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 15 Mar 2012 08:17:05 +1300 Subject: [PATCH] drop ILogicWithInit, no longer used --- OpenRA.Game/Widgets/Widget.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index dfb5bfebcf..6d1b52eca1 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -211,9 +211,6 @@ namespace OpenRA.Widgets args["widget"] = this; LogicObject = Game.modData.ObjectCreator.CreateObject(Logic, args); - var iwd = LogicObject as ILogicWithInit; - if (iwd != null) - iwd.Init(); args.Remove("widget"); } @@ -403,11 +400,4 @@ namespace OpenRA.Widgets public WidgetArgs(Dictionary args) : base(args) { } public void Add(string key, Action val) { base.Add(key, val); } } - - // TODO: you should use this anywhere you want to do - // something in a logic ctor, but retain debuggability. - public interface ILogicWithInit - { - void Init(); - } }