* Remove unused region info list from OpenSimBase.

* The same information is available via SceneManager
0.6.3-post-fixes
Justin Clarke Casey 2009-02-05 18:47:39 +00:00
parent d04025ff3d
commit 18100eee50
1 changed files with 2 additions and 24 deletions

View File

@ -87,8 +87,7 @@ namespace OpenSim
protected GridInfoService m_gridInfoService;
protected List<IClientNetworkServer> m_clientServers = new List<IClientNetworkServer>();
protected List<RegionInfo> m_regionData = new List<RegionInfo>();
protected List<IClientNetworkServer> m_clientServers = new List<IClientNetworkServer>();
public ConsoleCommand CreateAccount = null;
@ -107,12 +106,7 @@ namespace OpenSim
public List<IClientNetworkServer> ClientServers
{
get { return m_clientServers; }
}
public List<RegionInfo> RegionData
{
get { return m_regionData; }
}
}
public new BaseHttpServer HttpServer
{
@ -405,7 +399,6 @@ namespace OpenSim
m_sceneManager.Add(scene);
m_clientServers.Add(clientServer);
m_regionData.Add(regionInfo);
clientServer.Start();
if (do_post_init)
@ -430,7 +423,6 @@ namespace OpenSim
}
scene.DeleteAllSceneObjects();
m_regionData.Remove(scene.RegionInfo);
m_sceneManager.CloseScene(scene);
if (!cleanup)
@ -500,20 +492,6 @@ namespace OpenSim
m_clientServers.RemoveAt(clientServerElement);
}
//Removing the region from the sim's database of regions..
int RegionHandleElement = -1;
for (int i = 0; i < m_regionData.Count; i++)
{
if (whichRegion.RegionHandle == m_regionData[i].RegionHandle)
{
RegionHandleElement = i;
}
}
if (RegionHandleElement >= 0)
{
m_regionData.RemoveAt(RegionHandleElement);
}
CreateRegion(whichRegion, true);
}