diff options
author | Justin Clark-Casey (justincc) | 2014-03-06 00:46:16 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-03-06 00:46:16 +0000 |
commit | ed14e97bb4238406fc58705550a331539a07a533 (patch) | |
tree | f07ad656f5a6e99e3ec765b84111792b43149f7e /OpenSim | |
parent | minor: Increase size of parcel name field in "land show" console command outp... (diff) | |
download | opensim-SC-ed14e97bb4238406fc58705550a331539a07a533.zip opensim-SC-ed14e97bb4238406fc58705550a331539a07a533.tar.gz opensim-SC-ed14e97bb4238406fc58705550a331539a07a533.tar.bz2 opensim-SC-ed14e97bb4238406fc58705550a331539a07a533.tar.xz |
Remove array initialize calls in LMM - these are unnecessary as the VM already does this.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index dc7242f..5421b2e 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -117,8 +117,6 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
117 | { | 117 | { |
118 | m_scene = scene; | 118 | m_scene = scene; |
119 | m_landIDList = new int[m_scene.RegionInfo.RegionSizeX / LandUnit, m_scene.RegionInfo.RegionSizeY / LandUnit]; | 119 | m_landIDList = new int[m_scene.RegionInfo.RegionSizeX / LandUnit, m_scene.RegionInfo.RegionSizeY / LandUnit]; |
120 | |||
121 | m_landIDList.Initialize(); | ||
122 | landChannel = new LandChannel(scene, this); | 120 | landChannel = new LandChannel(scene, this); |
123 | 121 | ||
124 | parcelInfoCache = new Cache(); | 122 | parcelInfoCache = new Cache(); |
@@ -301,7 +299,6 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
301 | m_landList.Clear(); | 299 | m_landList.Clear(); |
302 | m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1; | 300 | m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1; |
303 | m_landIDList = new int[m_scene.RegionInfo.RegionSizeX / LandUnit, m_scene.RegionInfo.RegionSizeY / LandUnit]; | 301 | m_landIDList = new int[m_scene.RegionInfo.RegionSizeX / LandUnit, m_scene.RegionInfo.RegionSizeY / LandUnit]; |
304 | m_landIDList.Initialize(); | ||
305 | } | 302 | } |
306 | } | 303 | } |
307 | 304 | ||
@@ -938,7 +935,6 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
938 | private bool[,] CreateBitmapForID(int landID) | 935 | private bool[,] CreateBitmapForID(int landID) |
939 | { | 936 | { |
940 | bool[,] ret = new bool[m_landIDList.GetLength(0), m_landIDList.GetLength(1)]; | 937 | bool[,] ret = new bool[m_landIDList.GetLength(0), m_landIDList.GetLength(1)]; |
941 | ret.Initialize(); | ||
942 | 938 | ||
943 | for (int xx = 0; xx < m_landIDList.GetLength(0); xx++) | 939 | for (int xx = 0; xx < m_landIDList.GetLength(0); xx++) |
944 | for (int yy = 0; yy < m_landIDList.GetLength(0); yy++) | 940 | for (int yy = 0; yy < m_landIDList.GetLength(0); yy++) |