From 801da4346aeb3c08969c4845f5c595135a64470a Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 12 Feb 2009 09:53:12 +0000 Subject: * optimized usings. --- OpenSim/Data/MSSQL/AutoClosingSqlCommand.cs | 2 +- OpenSim/Data/MSSQL/MSSQLAssetData.cs | 6 +++--- OpenSim/Data/MSSQL/MSSQLEstateData.cs | 4 ++-- OpenSim/Data/MSSQL/MSSQLGridData.cs | 2 +- OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 2 +- OpenSim/Data/MSSQL/MSSQLManager.cs | 4 ++-- OpenSim/Data/MSSQL/MSSQLMigration.cs | 2 -- OpenSim/Data/MSSQL/MSSQLRegionData.cs | 2 +- OpenSim/Data/MSSQL/MSSQLUserData.cs | 2 +- 9 files changed, 12 insertions(+), 14 deletions(-) (limited to 'OpenSim/Data/MSSQL') diff --git a/OpenSim/Data/MSSQL/AutoClosingSqlCommand.cs b/OpenSim/Data/MSSQL/AutoClosingSqlCommand.cs index 9211747..f992c16 100644 --- a/OpenSim/Data/MSSQL/AutoClosingSqlCommand.cs +++ b/OpenSim/Data/MSSQL/AutoClosingSqlCommand.cs @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Data.SqlClient; using System.Data; +using System.Data.SqlClient; namespace OpenSim.Data.MSSQL { diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs index 425e233..27deef7 100644 --- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs +++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs @@ -28,8 +28,8 @@ using System; using System.Data; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; using OpenSim.Framework; namespace OpenSim.Data.MSSQL @@ -71,7 +71,7 @@ namespace OpenSim.Data.MSSQL /// connect string override public void Initialise(string connectionString) { - TicksToEpoch = new System.DateTime(1970, 1, 1).Ticks; + TicksToEpoch = new DateTime(1970, 1, 1).Ticks; if (!string.IsNullOrEmpty(connectionString)) { @@ -162,7 +162,7 @@ namespace OpenSim.Data.MSSQL " VALUES " + "(@id, @name, @description, @assetType, @local, @temporary, @create_time, @access_time, @data)")) { - int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000); + int now = (int)((DateTime.Now.Ticks - TicksToEpoch) / 10000000); command.Parameters.Add(database.CreateParameter("id", asset.Metadata.FullID)); command.Parameters.Add(database.CreateParameter("name", asset.Metadata.Name)); command.Parameters.Add(database.CreateParameter("description", asset.Metadata.Description)); diff --git a/OpenSim/Data/MSSQL/MSSQLEstateData.cs b/OpenSim/Data/MSSQL/MSSQLEstateData.cs index 8fd47a0..815e7ff 100644 --- a/OpenSim/Data/MSSQL/MSSQLEstateData.cs +++ b/OpenSim/Data/MSSQL/MSSQLEstateData.cs @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * @@ -30,8 +30,8 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; using OpenSim.Framework; using OpenSim.Region.Framework.Interfaces; diff --git a/OpenSim/Data/MSSQL/MSSQLGridData.cs b/OpenSim/Data/MSSQL/MSSQLGridData.cs index 7c7a886..eec2091 100644 --- a/OpenSim/Data/MSSQL/MSSQLGridData.cs +++ b/OpenSim/Data/MSSQL/MSSQLGridData.cs @@ -30,8 +30,8 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; using OpenSim.Framework; namespace OpenSim.Data.MSSQL diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index 764b89d..f367d78 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs @@ -30,8 +30,8 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; using OpenSim.Framework; namespace OpenSim.Data.MSSQL diff --git a/OpenSim/Data/MSSQL/MSSQLManager.cs b/OpenSim/Data/MSSQL/MSSQLManager.cs index 562fbad..c687c89 100644 --- a/OpenSim/Data/MSSQL/MSSQLManager.cs +++ b/OpenSim/Data/MSSQL/MSSQLManager.cs @@ -31,8 +31,8 @@ using System.Data; using System.Data.SqlClient; using System.IO; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; namespace OpenSim.Data.MSSQL { @@ -219,7 +219,7 @@ namespace OpenSim.Data.MSSQL { return value.ToString(); } - if (valueType == typeof(OpenMetaverse.UUID)) + if (valueType == typeof(UUID)) { return value.ToString(); } diff --git a/OpenSim/Data/MSSQL/MSSQLMigration.cs b/OpenSim/Data/MSSQL/MSSQLMigration.cs index baa25d5..aea31c9 100644 --- a/OpenSim/Data/MSSQL/MSSQLMigration.cs +++ b/OpenSim/Data/MSSQL/MSSQLMigration.cs @@ -26,11 +26,9 @@ */ using System; -using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Reflection; -using System.Text; namespace OpenSim.Data.MSSQL { diff --git a/OpenSim/Data/MSSQL/MSSQLRegionData.cs b/OpenSim/Data/MSSQL/MSSQLRegionData.cs index d77afc9..44b042e 100644 --- a/OpenSim/Data/MSSQL/MSSQLRegionData.cs +++ b/OpenSim/Data/MSSQL/MSSQLRegionData.cs @@ -32,8 +32,8 @@ using System.Data.SqlClient; using System.Drawing; using System.IO; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; using OpenSim.Framework; using OpenSim.Region.Framework.Interfaces; using OpenSim.Region.Framework.Scenes; diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index 4524736..453941f 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs @@ -31,8 +31,8 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Reflection; -using OpenMetaverse; using log4net; +using OpenMetaverse; using OpenSim.Framework; namespace OpenSim.Data.MSSQL -- cgit v1.1