* Optimised using statements and namespace references across entire project (this took a while to run).

This commit is contained in:
Adam Frisby
2008-04-21 07:09:17 +00:00
parent 05e24c8f58
commit fef3b36894
306 changed files with 1011 additions and 1306 deletions

View File

@@ -26,8 +26,7 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
@@ -61,20 +60,20 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer
// Use the object
if (obj.Equals(null))
{
System.Console.WriteLine("Error: unable to locate server");
Console.WriteLine("Error: unable to locate server");
}
else
{
return obj;
}
}
catch (System.Net.Sockets.SocketException)
catch (SocketException)
{
System.Console.WriteLine("Error: unable to connect to server");
Console.WriteLine("Error: unable to connect to server");
}
catch (System.Runtime.Remoting.RemotingException)
catch (RemotingException)
{
System.Console.WriteLine("Error: unable to connect to server");
Console.WriteLine("Error: unable to connect to server");
}
return null;
}

View File

@@ -28,8 +28,9 @@
/* Original code: Tedd Hansen */
using System;
using System.Reflection;
using log4net;
using Nini.Config;
using OpenSim.Framework.Console;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
@@ -42,7 +43,7 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer
[Serializable]
public class ScriptEngine : IRegionModule
{
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);
internal Scene World;
internal EventManager m_EventManager; // Handles and queues incoming events from OpenSim
@@ -53,7 +54,7 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer
Common.mySE = this;
}
public log4net.ILog Log
public ILog Log
{
get { return m_log; }
}