From c8857daf528954ad039346ececf7f6d92bc2c951 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 21 May 2008 22:06:38 +0000 Subject: * Going to the C# syntactic sugar way of handling the backup event delegates. --- OpenSim/Region/Environment/Scenes/EventManager.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index c6daa28..7ff9213 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs @@ -355,16 +355,10 @@ namespace OpenSim.Region.Environment.Scenes public void TriggerOnBackup(IRegionDataStore dstore) { handlerBackup = OnBackup; - Delegate[] items = OnBackup.GetInvocationList(); - foreach (OnBackupDelegate del in items) + if (handlerBackup != null) { - if (del != null) - del(dstore); + handlerBackup(dstore); } - //if (handlerBackup != null) - //{ - // handlerBackup(dstore); - //} } public void TriggerParcelPrimCountUpdate() -- cgit v1.1