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). --- OpenSim/Data/NHibernate/NHibernateAssetData.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs') diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index cc018dd..db90d09 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs @@ -26,17 +26,15 @@ */ using System; -using System.Data; +using System.IO; using System.Reflection; using libsecondlife; +using log4net; using NHibernate; using NHibernate.Cfg; -using NHibernate.Tool.hbm2ddl; using NHibernate.Mapping.Attributes; -using OpenSim.Data; using OpenSim.Framework; -using OpenSim.Framework.Console; -using Environment = NHibernate.Cfg.Environment; +using Environment=NHibernate.Cfg.Environment; namespace OpenSim.Data.NHibernate { @@ -45,7 +43,7 @@ namespace OpenSim.Data.NHibernate /// public class NHibernateAssetData : AssetDataBase, IDisposable { - 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 Configuration cfg; private ISessionFactory factory; @@ -67,8 +65,8 @@ namespace OpenSim.Data.NHibernate cfg.AddAssembly("OpenSim.Data.NHibernate"); HbmSerializer.Default.Validate = true; - using ( System.IO.MemoryStream stream = - HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) + using ( MemoryStream stream = + HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly())) cfg.AddInputStream(stream); // new SchemaExport(cfg).Create(true, true); -- cgit v1.1