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).
---
.../Modules/AgentAssetTransactionModule.cs | 6 ++++--
.../Environment/Modules/AssetDownloadModule.cs | 2 --
.../Environment/Modules/AsteriskVoiceModule.cs | 9 +++++----
.../Environment/Modules/AvatarProfilesModule.cs | 9 ++++++---
.../Environment/Modules/BetaGridLikeMoneyModule.cs | 17 ++++++++---------
OpenSim/Region/Environment/Modules/ChatModule.cs | 14 ++++++++------
.../Environment/Modules/CommanderTestModule.cs | 5 +----
.../Environment/Modules/DynamicTextureModule.cs | 7 ++++---
.../ExportSerialiser/ExportSerialisationModule.cs | 9 +++------
.../Modules/ExportSerialiser/IFileSerialiser.cs | 4 ----
.../Modules/ExportSerialiser/IRegionSerialiser.cs | 6 ++++--
.../Modules/ExportSerialiser/SerialiseObjects.cs | 7 ++++---
.../Modules/ExportSerialiser/SerialiseTerrain.cs | 3 ++-
OpenSim/Region/Environment/Modules/FriendsModule.cs | 4 +++-
OpenSim/Region/Environment/Modules/GroupsModule.cs | 4 +++-
.../Region/Environment/Modules/InventoryModule.cs | 9 ++++-----
.../Modules/LandManagement/LandChannel.cs | 14 +++++---------
.../Modules/LandManagement/LandManagementModule.cs | 12 ++----------
.../Environment/Modules/LandManagement/LandObject.cs | 9 +++++----
.../Environment/Modules/ModuleFramework/Commander.cs | 14 ++++++++------
.../Environment/Modules/ScriptsHttpRequests.cs | 3 ++-
.../Environment/Modules/TextureDownloadModule.cs | 2 +-
OpenSim/Region/Environment/Modules/TextureSender.cs | 8 ++++----
.../Environment/Modules/TreePopulatorModule.cs | 15 +++++++++------
.../Modules/UserTextureDownloadService.cs | 11 ++++-------
.../Region/Environment/Modules/VectorRenderModule.cs | 20 +++++++++++---------
OpenSim/Region/Environment/Modules/VoiceModule.cs | 9 +++++----
.../Region/Environment/Modules/WorldCommModule.cs | 1 -
OpenSim/Region/Environment/Modules/XMLRPCModule.cs | 15 +++++++++------
29 files changed, 124 insertions(+), 124 deletions(-)
(limited to 'OpenSim/Region/Environment/Modules')
diff --git a/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs b/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs
index 7ae3eba..cec7192 100644
--- a/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs
+++ b/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs
@@ -27,7 +27,9 @@
using System;
using System.Collections.Generic;
+using System.Reflection;
using libsecondlife;
+using log4net;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -129,8 +131,8 @@ namespace OpenSim.Region.Environment.Modules
//should merge this classes and clean up
public class AgentAssetTransactionsManager
{
- 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);
// Fields
public Scene MyScene;
diff --git a/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs
index d5f1b36..97db31e 100644
--- a/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs
+++ b/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs
@@ -25,9 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using System;
using System.Collections.Generic;
-using System.Threading;
using libsecondlife;
using libsecondlife.Packets;
using Nini.Config;
diff --git a/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs b/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs
index 52b9c3e..1b537c2 100644
--- a/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs
+++ b/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs
@@ -27,24 +27,25 @@
using System;
using System.Collections;
-using System.Collections.Generic;
+using System.Reflection;
using libsecondlife;
+using log4net;
using Nini.Config;
using Nwc.XmlRpc;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache;
using OpenSim.Framework.Servers;
using OpenSim.Region.Capabilities;
-using Caps = OpenSim.Region.Capabilities.Caps;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
+using Caps=OpenSim.Region.Capabilities.Caps;
namespace OpenSim.Region.Environment.Modules
{
public class AsteriskVoiceModule : 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);
private Scene m_scene;
private IConfig m_config;
diff --git a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs
index e3ad297..44b3f8b 100644
--- a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs
+++ b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs
@@ -25,7 +25,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+using System;
+using System.Reflection;
using libsecondlife;
+using log4net;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -35,7 +38,7 @@ namespace OpenSim.Region.Environment.Modules
{
public class AvatarProfilesModule : 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);
private Scene m_scene;
public AvatarProfilesModule()
@@ -92,8 +95,8 @@ namespace OpenSim.Region.Environment.Modules
{
remoteClient.SendAvatarProperties(profile.ID, profile.AboutText,
Util.ToDateTime(profile.Created).ToString(),
- System.String.Empty, profile.FirstLifeAboutText, profile.CanDoMask,
- profile.FirstLifeImage, profile.Image, System.String.Empty, partner);
+ String.Empty, profile.FirstLifeAboutText, profile.CanDoMask,
+ profile.FirstLifeImage, profile.Image, String.Empty, partner);
}
else
{
diff --git a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
index 0748719..d5b2ea2 100644
--- a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
+++ b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
@@ -30,16 +30,15 @@ using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
+using System.Reflection;
using System.Xml;
using libsecondlife;
+using log4net;
using Nini.Config;
+using Nwc.XmlRpc;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
-using Nwc.XmlRpc;
-
-using MoneyTransferArgs = OpenSim.Region.Environment.Scenes.EventManager.MoneyTransferArgs;
-using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs;
namespace OpenSim.Region.Environment.Modules
{
@@ -56,7 +55,7 @@ namespace OpenSim.Region.Environment.Modules
///
public class BetaGridLikeMoneyModule: 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);
///
/// Region UUIDS indexed by AgentID
@@ -341,7 +340,7 @@ namespace OpenSim.Region.Environment.Modules
}
}
- private void ValidateLandBuy (Object osender, LandBuyArgs e)
+ private void ValidateLandBuy (Object osender, EventManager.LandBuyArgs e)
{
if (m_MoneyAddress.Length == 0)
{
@@ -372,7 +371,7 @@ namespace OpenSim.Region.Environment.Modules
}
}
- private void processLandBuy(Object osender, LandBuyArgs e)
+ private void processLandBuy(Object osender, EventManager.LandBuyArgs e)
{
lock(e)
{
@@ -396,7 +395,7 @@ namespace OpenSim.Region.Environment.Modules
///
///
///
- private void MoneyTransferAction (Object osender, MoneyTransferArgs e)
+ private void MoneyTransferAction (Object osender, EventManager.MoneyTransferArgs e)
{
IClientAPI sender = null;
IClientAPI receiver = null;
@@ -724,7 +723,7 @@ namespace OpenSim.Region.Environment.Modules
{
returnfunds = GetFundsForAgentID(agentID);
}
- catch (System.Exception e)
+ catch (Exception e)
{
client.SendAlertMessage(e.Message + " ");
}
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs
index f854409..30c1397 100644
--- a/OpenSim/Region/Environment/Modules/ChatModule.cs
+++ b/OpenSim/Region/Environment/Modules/ChatModule.cs
@@ -29,9 +29,11 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
+using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading;
using libsecondlife;
+using log4net;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -41,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules
{
public class ChatModule : IRegionModule, ISimChat
{
- 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 List m_scenes = new List();
@@ -116,7 +118,7 @@ namespace OpenSim.Region.Environment.Modules
if (!m_irc_connector.IsAlive)
{
m_irc_connector.Start();
- OpenSim.Framework.ThreadTracker.Add(m_irc_connector);
+ ThreadTracker.Add(m_irc_connector);
}
}
catch (Exception)
@@ -267,7 +269,7 @@ namespace OpenSim.Region.Environment.Modules
if (!m_irc_connector.IsAlive)
{
m_irc_connector.Start();
- OpenSim.Framework.ThreadTracker.Add(m_irc_connector);
+ ThreadTracker.Add(m_irc_connector);
}
}
catch (Exception)
@@ -336,7 +338,7 @@ namespace OpenSim.Region.Environment.Modules
internal class IRCChatModule
{
- 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 string m_server = null;
private uint m_port = 6668;
@@ -431,13 +433,13 @@ namespace OpenSim.Region.Environment.Modules
pingSender.Name = "PingSenderThread";
pingSender.IsBackground = true;
pingSender.Start();
- OpenSim.Framework.ThreadTracker.Add(pingSender);
+ ThreadTracker.Add(pingSender);
listener = new Thread(new ThreadStart(ListenerRun));
listener.Name = "IRCChatModuleListenerThread";
listener.IsBackground = true;
listener.Start();
- OpenSim.Framework.ThreadTracker.Add(listener);
+ ThreadTracker.Add(listener);
m_writer.WriteLine(m_user);
m_writer.Flush();
diff --git a/OpenSim/Region/Environment/Modules/CommanderTestModule.cs b/OpenSim/Region/Environment/Modules/CommanderTestModule.cs
index 0133f27..a30de73 100644
--- a/OpenSim/Region/Environment/Modules/CommanderTestModule.cs
+++ b/OpenSim/Region/Environment/Modules/CommanderTestModule.cs
@@ -26,13 +26,10 @@
*/
using System;
-using System.Collections.Generic;
-using libsecondlife;
using Nini.Config;
-using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
-using OpenSim.Region.Environment.Scenes;
using OpenSim.Region.Environment.Modules.ModuleFramework;
+using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules
{
diff --git a/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs b/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs
index ee84499..02354f1 100644
--- a/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs
+++ b/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs
@@ -26,14 +26,15 @@
*/
using System;
-using System.Drawing;
using System.Collections.Generic;
+using System.Drawing;
+using System.Drawing.Imaging;
using libsecondlife;
using Nini.Config;
+using OpenJPEGNet;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
-using OpenJPEGNet;
namespace OpenSim.Region.Environment.Modules
{
@@ -252,7 +253,7 @@ namespace OpenSim.Region.Environment.Modules
Bitmap joint;
Graphics jG;
- joint = new Bitmap(back.Width, back.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
+ joint = new Bitmap(back.Width, back.Height, PixelFormat.Format32bppArgb);
jG = Graphics.FromImage(joint);
jG.DrawImage(back, 0, 0, back.Width, back.Height);
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs
index 0faa573..f811f22 100644
--- a/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs
+++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs
@@ -27,18 +27,15 @@
using System;
using System.Collections.Generic;
-using System.Drawing;
-using libsecondlife;
+using System.IO;
using Nini.Config;
-using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
-using OpenSim.Region.Environment.Scenes;
using OpenSim.Region.Environment.Modules.ModuleFramework;
-using System.IO;
+using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules.ExportSerialiser
{
- public class ExportSerialisationModule : IRegionModule, OpenSim.Region.Environment.Modules.ExportSerialiser.IRegionSerialiser
+ public class ExportSerialisationModule : IRegionModule, IRegionSerialiser
{
private List m_regions = new List();
private List m_serialisers = new List();
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs
index f13c8fa..8cd97a8 100644
--- a/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs
+++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs
@@ -25,10 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using System;
-using System.Collections.Generic;
-using System.Text;
-
using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules.ExportSerialiser
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs
index a9454fc..5b10957 100644
--- a/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs
+++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs
@@ -25,11 +25,13 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using System;
+using System.Collections.Generic;
+using OpenSim.Region.Environment.Scenes;
+
namespace OpenSim.Region.Environment.Modules.ExportSerialiser
{
public interface IRegionSerialiser
{
- System.Collections.Generic.List SerialiseRegion(OpenSim.Region.Environment.Scenes.Scene scene, string saveDir);
+ List SerialiseRegion(Scene scene, string saveDir);
}
}
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
index e413466..ac80f40 100644
--- a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
+++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
@@ -25,10 +25,11 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using OpenSim.Region.Environment.Scenes;
-using System.IO;
using System.Collections.Generic;
+using System.IO;
+using System.Text;
using System.Xml;
+using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules.ExportSerialiser
{
@@ -61,7 +62,7 @@ namespace OpenSim.Region.Environment.Modules.ExportSerialiser
xmlstream += "";
MemoryStream stream = new MemoryStream();
- XmlTextWriter formatter = new XmlTextWriter(stream, System.Text.Encoding.UTF8);
+ XmlTextWriter formatter = new XmlTextWriter(stream, Encoding.UTF8);
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlstream);
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs
index eeeacdc..8555089 100644
--- a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs
+++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs
@@ -26,6 +26,7 @@
*/
using OpenSim.Region.Environment.Modules.Terrain;
+using OpenSim.Region.Environment.Modules.Terrain.FileLoaders;
using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules.ExportSerialiser
@@ -36,7 +37,7 @@ namespace OpenSim.Region.Environment.Modules.ExportSerialiser
public string WriteToFile(Scene scene, string dir)
{
- ITerrainLoader fileSystemExporter = new Terrain.FileLoaders.RAW32();
+ ITerrainLoader fileSystemExporter = new RAW32();
string targetFileName = dir + "heightmap.r32";
lock (scene.Heightmap)
diff --git a/OpenSim/Region/Environment/Modules/FriendsModule.cs b/OpenSim/Region/Environment/Modules/FriendsModule.cs
index a2ec599..7e12618 100644
--- a/OpenSim/Region/Environment/Modules/FriendsModule.cs
+++ b/OpenSim/Region/Environment/Modules/FriendsModule.cs
@@ -26,8 +26,10 @@
*/
using System;
using System.Collections.Generic;
+using System.Reflection;
using libsecondlife;
using libsecondlife.Packets;
+using log4net;
using Nini.Config;
using Nwc.XmlRpc;
using OpenSim.Framework;
@@ -38,7 +40,7 @@ namespace OpenSim.Region.Environment.Modules
{
public class FriendsModule : 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);
private List m_scene = new List();
diff --git a/OpenSim/Region/Environment/Modules/GroupsModule.cs b/OpenSim/Region/Environment/Modules/GroupsModule.cs
index 6cdae7b..b23bb91 100644
--- a/OpenSim/Region/Environment/Modules/GroupsModule.cs
+++ b/OpenSim/Region/Environment/Modules/GroupsModule.cs
@@ -27,7 +27,9 @@
using System;
using System.Collections.Generic;
+using System.Reflection;
using libsecondlife;
+using log4net;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -37,7 +39,7 @@ namespace OpenSim.Region.Environment.Modules
{
public class GroupsModule : 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);
private List m_scene = new List();
private Dictionary m_iclientmap = new Dictionary();
diff --git a/OpenSim/Region/Environment/Modules/InventoryModule.cs b/OpenSim/Region/Environment/Modules/InventoryModule.cs
index eadbb4f..ff5a02c 100644
--- a/OpenSim/Region/Environment/Modules/InventoryModule.cs
+++ b/OpenSim/Region/Environment/Modules/InventoryModule.cs
@@ -25,12 +25,11 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using System;
using System.Collections.Generic;
-
+using System.Reflection;
using libsecondlife;
+using log4net;
using Nini.Config;
-
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
@@ -39,8 +38,8 @@ namespace OpenSim.Region.Environment.Modules
{
public class InventoryModule : 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);
private Scene m_scene;
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs
index e3b7cf5..561c5cf 100644
--- a/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs
+++ b/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs
@@ -27,18 +27,14 @@
using System;
using System.Collections.Generic;
-using System.Text;
using Axiom.Math;
using libsecondlife;
using libsecondlife.Packets;
using OpenSim.Framework;
-using OpenSim.Framework.Console;
-using OpenSim.Region.Environment.Scenes;
using OpenSim.Region.Environment.Interfaces;
+using OpenSim.Region.Environment.Scenes;
using OpenSim.Region.Physics.Manager;
-using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs;
-
namespace OpenSim.Region.Environment.Modules.LandManagement
{
public class LandChannel : ILandChannel
@@ -245,7 +241,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
x = Convert.ToInt32(Math.Floor(Convert.ToDouble(x_float) / Convert.ToDouble(4.0)));
y = Convert.ToInt32(Math.Floor(Convert.ToDouble(y_float) / Convert.ToDouble(4.0)));
}
- catch (System.OverflowException)
+ catch (OverflowException)
{
return null;
}
@@ -957,7 +953,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
// and land has been validated as well, this method transfers
// the land ownership
- public void handleLandBuyRequest(Object o, LandBuyArgs e)
+ public void handleLandBuyRequest(Object o, EventManager.LandBuyArgs e)
{
if (e.economyValidated && e.landValidated)
{
@@ -976,7 +972,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
// be validated. This method validates the right to buy the
// parcel
- public void handleLandValidationRequest(Object o, LandBuyArgs e)
+ public void handleLandValidationRequest(Object o, EventManager.LandBuyArgs e)
{
if (e.landValidated == false)
{
@@ -994,7 +990,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
int saleprice = lob.landData.salePrice;
LLUUID pOwnerID = lob.landData.ownerID;
- bool landforsale = ((lob.landData.landFlags & (uint)(libsecondlife.Parcel.ParcelFlags.ForSale | libsecondlife.Parcel.ParcelFlags.ForSaleObjects | libsecondlife.Parcel.ParcelFlags.SellParcelObjects)) != 0);
+ bool landforsale = ((lob.landData.landFlags & (uint)(Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects)) != 0);
if ((AuthorizedID == LLUUID.Zero || AuthorizedID == e.agentId) && e.parcelPrice >= saleprice && landforsale)
{
lock (e)
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs
index 20f75df..1c36c0c 100644
--- a/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs
@@ -25,17 +25,9 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using System;
-using System.Collections.Generic;
-using libsecondlife;
-using libsecondlife.Packets;
-using OpenSim.Framework;
-using OpenSim.Framework.Console;
-using OpenSim.Region.Environment.Scenes;
-using OpenSim.Region.Environment.Interfaces;
using Nini.Config;
-
-using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs;
+using OpenSim.Region.Environment.Interfaces;
+using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules.LandManagement
{
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
index 69d3c05..f9684e6 100644
--- a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
+++ b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
@@ -27,12 +27,13 @@
using System;
using System.Collections.Generic;
+using System.Reflection;
using libsecondlife;
using libsecondlife.Packets;
+using log4net;
using OpenSim.Framework;
-using OpenSim.Framework.Console;
-using OpenSim.Region.Environment.Scenes;
using OpenSim.Region.Environment.Interfaces;
+using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules.LandManagement
{
@@ -46,7 +47,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
{
#region Member Variables
- 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);
protected LandData m_landData = new LandData();
protected List primsOverMe = new List();
@@ -273,7 +274,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
newData.claimPrice = claimprice;
newData.salePrice = 0;
newData.authBuyerID = LLUUID.Zero;
- newData.landFlags &= ~(uint)(libsecondlife.Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects);
+ newData.landFlags &= ~(uint)(Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects);
m_scene.LandChannel.updateLandObject(landData.localID, newData);
sendLandUpdateToAvatarsOverMe();
diff --git a/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs b/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs
index 9834a8a..27d73b5 100644
--- a/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs
+++ b/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs
@@ -27,8 +27,10 @@
using System;
using System.Collections.Generic;
+using System.Reflection;
using System.Text;
-
+using log4net;
+using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
namespace OpenSim.Region.Environment.Modules.ModuleFramework
@@ -39,9 +41,9 @@ namespace OpenSim.Region.Environment.Modules.ModuleFramework
///
public class Command : ICommand
{
- 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 Action