From a1c9349d4765833691e7816d7f4df7bd37b9ee36 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 4 Feb 2008 16:22:58 +0000 Subject: Refactor only: serve stats objects directly through StatsManager singleton --- OpenSim/Framework/Communications/UserManagerBase.cs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs') diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index 4967cd9..3b1d837 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs @@ -45,17 +45,6 @@ namespace OpenSim.Framework.UserManagement { public UserConfig _config; private Dictionary _plugins = new Dictionary(); - protected UserStatsReporter _stats; - - /// - /// Constructor. - /// - /// Can be null if stats collection is not required. - /// - public UserManagerBase(UserStatsReporter statsCollector) - { - _stats = statsCollector; - } /// /// Adds a new user server plugin - user servers will be requested in the order they were loaded. @@ -435,8 +424,8 @@ namespace OpenSim.Framework.UserManagement /// public void LogOffUser(LLUUID userid, LLUUID regionid, ulong regionhandle, float posx, float posy, float posz) { - if (_stats != null) - _stats.AddLogout(); + if (StatsManager.UserStats != null) + StatsManager.UserStats.AddLogout(); UserProfileData userProfile; UserAgentData userAgent; -- cgit v1.1