From fef3b3689492dea63693c964bcdbec9f5137eb5e Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 21 Apr 2008 07:09:17 +0000 Subject: * Optimised using statements and namespace references across entire project (this took a while to run). --- OpenSim/Grid/UserServer/UserManager.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'OpenSim/Grid/UserServer/UserManager.cs') diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 2a53d7b..aa2c959 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs @@ -28,11 +28,12 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Reflection; using System.Text.RegularExpressions; using libsecondlife; +using log4net; using Nwc.XmlRpc; using OpenSim.Framework; -using OpenSim.Framework.Statistics; using OpenSim.Framework.UserManagement; namespace OpenSim.Grid.UserServer @@ -41,7 +42,7 @@ namespace OpenSim.Grid.UserServer public class UserManager : UserManagerBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public event logOffUser OnLogOffUser; private logOffUser handlerLogOffUser = null; @@ -389,7 +390,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLocationX = (float)Convert.ToDecimal((string)requestData["home_pos_x"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home postion x"); } @@ -401,7 +402,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLocationY = (float)Convert.ToDecimal((string)requestData["home_pos_y"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home postion y"); } @@ -412,7 +413,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLocationZ = (float)Convert.ToDecimal((string)requestData["home_pos_z"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home postion z"); } @@ -423,7 +424,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLookAtX = (float)Convert.ToDecimal((string)requestData["home_look_x"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home lookat x"); } @@ -434,7 +435,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLookAtY = (float)Convert.ToDecimal((string)requestData["home_look_y"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home lookat y"); } @@ -445,7 +446,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLookAtZ = (float)Convert.ToDecimal((string)requestData["home_look_z"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home lookat z"); } -- cgit v1.1