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/MessagingServer/Main.cs | 9 +++++---- OpenSim/Grid/MessagingServer/MessageService.cs | 14 ++++++-------- OpenSim/Grid/MessagingServer/PresenceInformer.cs | 13 +++---------- OpenSim/Grid/MessagingServer/UserPresenceData.cs | 3 +-- OpenSim/Grid/MessagingServer/WorkUnitBase.cs | 4 ---- OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs | 4 ---- OpenSim/Grid/MessagingServer/XMPPHTTPService.cs | 11 ++++------- 7 files changed, 19 insertions(+), 39 deletions(-) (limited to 'OpenSim/Grid/MessagingServer') diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs index b288b33..bf793bf 100644 --- a/OpenSim/Grid/MessagingServer/Main.cs +++ b/OpenSim/Grid/MessagingServer/Main.cs @@ -26,11 +26,12 @@ */ using System; -using System.Collections.Generic; using System.IO; +using System.Reflection; using libsecondlife; +using log4net; +using log4net.Config; using OpenSim.Framework; -using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; @@ -40,7 +41,7 @@ namespace OpenSim.Grid.MessagingServer /// public class OpenMessage_Main : BaseOpenSimServer, conscmd_callback { - 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); private MessageServerConfig Cfg; private MessageService msgsvc; @@ -50,7 +51,7 @@ namespace OpenSim.Grid.MessagingServer [STAThread] public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); m_log.Info("Launching MessagingServer..."); diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index 1b16cb2..d824d21 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs @@ -26,25 +26,23 @@ */ using System; -using System.Net; -using System.Net.Sockets; using System.Collections; using System.Collections.Generic; +using System.Net; +using System.Reflection; using System.Threading; -//using System.Xml; using libsecondlife; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Data; -using OpenSim.Framework.Servers; -using FriendRights = libsecondlife.FriendRights; +using OpenSim.Framework; +//using System.Xml; namespace OpenSim.Grid.MessagingServer { public class MessageService { - 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); private MessageServerConfig m_cfg; diff --git a/OpenSim/Grid/MessagingServer/PresenceInformer.cs b/OpenSim/Grid/MessagingServer/PresenceInformer.cs index f270bbe..59d0e13 100644 --- a/OpenSim/Grid/MessagingServer/PresenceInformer.cs +++ b/OpenSim/Grid/MessagingServer/PresenceInformer.cs @@ -25,18 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections; -using System.Collections.Generic; -using System.Net; -using System.Net.Sockets; -using System.Text; -using libsecondlife; +using System.Reflection; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Data; -using OpenSim.Framework.Servers; namespace OpenSim.Grid.MessagingServer { @@ -44,7 +37,7 @@ namespace OpenSim.Grid.MessagingServer { public UserPresenceData presence1 = null; public UserPresenceData presence2 = null; - 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 PresenceInformer() { diff --git a/OpenSim/Grid/MessagingServer/UserPresenceData.cs b/OpenSim/Grid/MessagingServer/UserPresenceData.cs index 4390903..7188201 100644 --- a/OpenSim/Grid/MessagingServer/UserPresenceData.cs +++ b/OpenSim/Grid/MessagingServer/UserPresenceData.cs @@ -26,11 +26,10 @@ */ using System; -using System.Collections; using System.Collections.Generic; using libsecondlife; -using OpenSim.Framework; using OpenSim.Data; +using OpenSim.Framework; namespace OpenSim.Grid.MessagingServer { diff --git a/OpenSim/Grid/MessagingServer/WorkUnitBase.cs b/OpenSim/Grid/MessagingServer/WorkUnitBase.cs index c4e6240..d25f044 100644 --- a/OpenSim/Grid/MessagingServer/WorkUnitBase.cs +++ b/OpenSim/Grid/MessagingServer/WorkUnitBase.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Grid.MessagingServer { public class WorkUnitBase diff --git a/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs b/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs index c54b4d9..c31f0c7 100644 --- a/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs +++ b/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Grid.MessagingServer { public class WorkUnitPresenceUpdate : WorkUnitBase diff --git a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs index 4a66717..df3bc22 100644 --- a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs +++ b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs @@ -27,19 +27,16 @@ using System; using System.IO; -using System.Text; -using System.Xml; -using System.Xml.Serialization; +using System.Reflection; using libsecondlife; -using OpenSim.Framework; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Framework.Servers; namespace OpenSim.Grid.MessagingServer { public class XMPPHTTPStreamHandler : BaseStreamHandler { - 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); /// @@ -85,7 +82,7 @@ namespace OpenSim.Grid.MessagingServer public class PostXMPPStreamHandler : BaseStreamHandler { - 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 override byte[] Handle(string path, Stream request) { -- cgit v1.1