* 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,6 +26,7 @@
*/
using System;
using log4net.Config;
namespace OpenSim.Grid.ScriptServer
{
@@ -35,7 +36,7 @@ namespace OpenSim.Grid.ScriptServer
private static void Main(string[] args)
{
log4net.Config.XmlConfigurator.Configure();
XmlConfigurator.Configure();
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

View File

@@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
using OpenSim.Framework.Communications.Cache;

View File

@@ -26,9 +26,6 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.ScriptEngine.Common;
namespace OpenSim.Grid.ScriptServer

View File

@@ -25,13 +25,9 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using OpenSim.Region.ScriptEngine.Common;
namespace OpenSim.Grid.ScriptServer
{

View File

@@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using OpenSim.Framework.Console;
namespace OpenSim.Grid.ScriptServer
{
// Maintains connection and communication to a region

View File

@@ -27,7 +27,7 @@
using System.Collections.Generic;
using System.Threading;
using OpenSim.Framework.Console;
using OpenSim.Framework;
namespace OpenSim.Grid.ScriptServer
{
@@ -61,7 +61,7 @@ namespace OpenSim.Grid.ScriptServer
listenThread.Name = "ListenThread";
listenThread.IsBackground = true;
listenThread.Start();
OpenSim.Framework.ThreadTracker.Add(listenThread);
ThreadTracker.Add(listenThread);
}
/// <summary>

View File

@@ -28,14 +28,14 @@
using System;
using System.IO;
using System.Reflection;
using OpenSim.Framework.Console;
using log4net;
using OpenSim.Region.ScriptEngine.Common;
namespace OpenSim.Grid.ScriptServer.ScriptServer
{
internal class ScriptEngineLoader
{
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 ScriptServerInterfaces.ScriptEngine LoadScriptEngine(string EngineName)
{

View File

@@ -26,7 +26,6 @@
*/
using System.Collections.Generic;
using OpenSim.Framework.Console;
using OpenSim.Region.ScriptEngine.Common;
namespace OpenSim.Grid.ScriptServer.ScriptServer

View File

@@ -25,10 +25,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System.IO;
using System;
using System.Reflection;
using libsecondlife;
using Nini.Config;
using OpenSim.Framework;
using log4net;
using OpenSim.Framework.Console;
using OpenSim.Framework.Servers;
using OpenSim.Grid.ScriptServer.ScriptServer;
@@ -39,7 +39,7 @@ namespace OpenSim.Grid.ScriptServer
{
public class ScriptServerMain : 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);
//
// Root object. Creates objects used.
@@ -77,7 +77,7 @@ namespace OpenSim.Grid.ScriptServer
RPC.ReceiveCommand += new TRPC_Remote.ReceiveCommandDelegate(RPC_ReceiveCommand);
m_TCPServer.StartListen();
System.Console.ReadLine();
Console.ReadLine();
}
private void RPC_ReceiveCommand(int ID, string Command, object[] p)