* 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;
}