From da55f4d2aed3850ba237d6759446349ef39273eb Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 12 Jul 2008 22:18:54 +0000 Subject: * minor: comment out a couple of lines to eliminate nhibernate compile warnings for now --- OpenSim/Data/NHibernate/NHibernateRegionData.cs | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'OpenSim/Data/NHibernate') diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs index 9b91f76..a2caab1 100644 --- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs +++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs @@ -52,7 +52,7 @@ namespace OpenSim.Data.NHibernate private Configuration cfg; private ISessionFactory factory; - private ISession session; + //private ISession session; public void Initialise() { @@ -89,7 +89,7 @@ namespace OpenSim.Data.NHibernate cfg.AddInputStream(stream); factory = cfg.BuildSessionFactory(); - session = factory.OpenSession(); + //session = factory.OpenSession(); // This actually does the roll forward assembly stuff Assembly assem = GetType().Assembly; @@ -119,7 +119,7 @@ namespace OpenSim.Data.NHibernate /// the region UUID public void StoreObject(SceneObjectGroup obj, LLUUID regionUUID) { - NHPrim[] prims = (NHPrim[]) obj.GetParts(); + //NHPrim[] prims = (NHPrim[]) obj.GetParts(); } /// @@ -242,18 +242,18 @@ namespace OpenSim.Data.NHibernate /// /// /// - private static Array serializeTerrain(double[,] val) - { - MemoryStream str = new MemoryStream(65536*sizeof (double)); - BinaryWriter bw = new BinaryWriter(str); - - // TODO: COMPATIBILITY - Add byte-order conversions - for (int x = 0; x < 256; x++) - for (int y = 0; y < 256; y++) - bw.Write(val[x, y]); - - return str.ToArray(); - } +// private static Array serializeTerrain(double[,] val) +// { +// MemoryStream str = new MemoryStream(65536*sizeof (double)); +// BinaryWriter bw = new BinaryWriter(str); +// +// // TODO: COMPATIBILITY - Add byte-order conversions +// for (int x = 0; x < 256; x++) +// for (int y = 0; y < 256; y++) +// bw.Write(val[x, y]); +// +// return str.ToArray(); +// } /// /// see IRegionDatastore -- cgit v1.1