From a6ee4daf58bfcec1cee0d0d43ce7f410fe1e9809 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 7 Aug 2013 19:41:20 +1200 Subject: [PATCH] Remove obsolete ITooltip.Stance. --- OpenRA.Game/Traits/TraitsInterfaces.cs | 1 - OpenRA.Mods.RA/Spy.cs | 11 ----------- OpenRA.Mods.RA/Valued.cs | 1 - 3 files changed, 13 deletions(-) diff --git a/OpenRA.Game/Traits/TraitsInterfaces.cs b/OpenRA.Game/Traits/TraitsInterfaces.cs index 6098f2d3a3..172d6395f5 100755 --- a/OpenRA.Game/Traits/TraitsInterfaces.cs +++ b/OpenRA.Game/Traits/TraitsInterfaces.cs @@ -83,7 +83,6 @@ namespace OpenRA.Traits { string Name(); Player Owner(); - Stance Stance(); } public interface IDisable { bool Disabled { get; } } diff --git a/OpenRA.Mods.RA/Spy.cs b/OpenRA.Mods.RA/Spy.cs index 7b7553ae60..d0d0459d28 100644 --- a/OpenRA.Mods.RA/Spy.cs +++ b/OpenRA.Mods.RA/Spy.cs @@ -51,17 +51,6 @@ namespace OpenRA.Mods.RA return self.Owner; } - public Stance Stance() - { - if (spy.Disguised) - { - if (self.Owner == self.World.LocalPlayer) - return self.World.LocalPlayer.Stances[self.Owner]; - return self.World.LocalPlayer.Stances[spy.disguisedAsPlayer]; - } - return self.World.LocalPlayer.Stances[self.Owner]; - } - public SpyToolTip( Actor self, TooltipInfo info ) { this.self = self; diff --git a/OpenRA.Mods.RA/Valued.cs b/OpenRA.Mods.RA/Valued.cs index 6df5487125..483c6cc23b 100755 --- a/OpenRA.Mods.RA/Valued.cs +++ b/OpenRA.Mods.RA/Valued.cs @@ -40,7 +40,6 @@ namespace OpenRA.Mods.RA public string Name() { return Info.Name; } public Player Owner() { return self.Owner; } - public Stance Stance() { return self.World.LocalPlayer.Stances[self.Owner]; } public Tooltip(Actor self, TooltipInfo info) {