From ac94dc8a14e9087c3ba43bd7a2f2a74f957a975c Mon Sep 17 00:00:00 2001
From: Robert Adams
Date: Mon, 4 Nov 2013 22:06:20 -0800
Subject: varregion: remove unused terrain serialization code in SQLite and
PGSQL modules
---
OpenSim/Data/PGSQL/PGSQLSimulationData.cs | 24 ------------------------
1 file changed, 24 deletions(-)
(limited to 'OpenSim/Data/PGSQL')
diff --git a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs
index 34eb038..b063607 100644
--- a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs
@@ -1364,30 +1364,6 @@ namespace OpenSim.Data.PGSQL
#region Private Methods
///
- /// Serializes the terrain data for storage in DB.
- ///
- /// terrain data
- ///
- private static Array serializeTerrain(double[,] val)
- {
- MemoryStream str = new MemoryStream(((int)Constants.RegionSize * (int)Constants.RegionSize) * sizeof(double));
- BinaryWriter bw = new BinaryWriter(str);
-
- // TODO: COMPATIBILITY - Add byte-order conversions
- for (int x = 0; x < (int)Constants.RegionSize; x++)
- for (int y = 0; y < (int)Constants.RegionSize; y++)
- {
- double height = val[x, y];
- if (height == 0.0)
- height = double.Epsilon;
-
- bw.Write(height);
- }
-
- return str.ToArray();
- }
-
- ///
/// Stores new regionsettings.
///
/// The region settings.
--
cgit v1.1