From 00b8576edf7e992be19b459e4a9480d9b874b4b2 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 11 Mar 2019 22:02:27 +0100 Subject: [PATCH] Remove the unused INotifySold.Selling implementation --- .../Scripting/ScriptTriggers.cs | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/OpenRA.Mods.Common/Scripting/ScriptTriggers.cs b/OpenRA.Mods.Common/Scripting/ScriptTriggers.cs index 7aca40fb46..1f5ae72ec0 100644 --- a/OpenRA.Mods.Common/Scripting/ScriptTriggers.cs +++ b/OpenRA.Mods.Common/Scripting/ScriptTriggers.cs @@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Scripting OnIdle, OnDamaged, OnKilled, OnProduction, OnOtherProduction, OnPlayerWon, OnPlayerLost, OnObjectiveAdded, OnObjectiveCompleted, OnObjectiveFailed, OnCapture, OnInfiltrated, OnAddedToWorld, OnRemovedFromWorld, OnDiscovered, OnPlayerDiscovered, - OnPassengerEntered, OnPassengerExited, OnSelling, OnSold + OnPassengerEntered, OnPassengerExited, OnSold } [Desc("Allows map scripts to attach triggers to this actor via the Triggers global.")] @@ -369,26 +369,7 @@ namespace OpenRA.Mods.Common.Scripting OnRemovedInternal(self); } - void INotifySold.Selling(Actor self) - { - if (world.Disposing) - return; - - // Run Lua callbacks - foreach (var f in Triggerables(Trigger.OnSelling)) - { - try - { - f.Function.Call(f.Self).Dispose(); - } - catch (Exception ex) - { - f.Context.FatalError(ex.Message); - return; - } - } - } - + void INotifySold.Selling(Actor self) { } void INotifySold.Sold(Actor self) { if (world.Disposing)