From 7283bc5273d060917ec4c20d46ca13b88faae78c Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 29 Jan 2010 19:54:07 +1300 Subject: [PATCH] cleaning some cruft --- OpenRa.Game/Traits/ChronoshiftPower.cs | 7 +------ OpenRa.Game/Traits/CrateSpawnPower.cs | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/OpenRa.Game/Traits/ChronoshiftPower.cs b/OpenRa.Game/Traits/ChronoshiftPower.cs index 766a87bdcf..edb0172ddf 100644 --- a/OpenRa.Game/Traits/ChronoshiftPower.cs +++ b/OpenRa.Game/Traits/ChronoshiftPower.cs @@ -73,8 +73,6 @@ namespace OpenRa.Traits class SelectTarget : IOrderGenerator { - public SelectTarget() { } - public IEnumerable Order(World world, int2 xy, MouseInput mi) { if (mi.Button == MouseButton.Right) @@ -122,10 +120,7 @@ namespace OpenRa.Traits class SelectDestination : IOrderGenerator { Actor self; - public SelectDestination(Actor self) - { - this.self = self; - } + public SelectDestination(Actor self) { this.self = self; } public IEnumerable Order(World world, int2 xy, MouseInput mi) { diff --git a/OpenRa.Game/Traits/CrateSpawnPower.cs b/OpenRa.Game/Traits/CrateSpawnPower.cs index 957038560b..d9b7857ecd 100644 --- a/OpenRa.Game/Traits/CrateSpawnPower.cs +++ b/OpenRa.Game/Traits/CrateSpawnPower.cs @@ -16,8 +16,6 @@ namespace OpenRa.Traits { public CrateSpawnPower(Actor self, CrateSpawnPowerInfo info) : base(self, info) { } - protected override void OnBeginCharging() {} - protected override void OnFinishCharging() {} protected override void OnActivate() { Game.controller.orderGenerator = new SelectTarget(); @@ -37,8 +35,6 @@ namespace OpenRa.Traits class SelectTarget : IOrderGenerator { - public SelectTarget() { } - public IEnumerable Order(World world, int2 xy, MouseInput mi) { if (mi.Button == MouseButton.Right)