drop ILogicWithInit, no longer used

This commit is contained in:
Chris Forbes
2012-03-15 08:17:05 +13:00
parent 23ea8493ba
commit 5b8334b26d

View File

@@ -211,9 +211,6 @@ namespace OpenRA.Widgets
args["widget"] = this;
LogicObject = Game.modData.ObjectCreator.CreateObject<object>(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<string, object> 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();
}
}