* Remove unused region info list from OpenSimBase.
* The same information is available via SceneManager0.6.3-post-fixes
parent
d04025ff3d
commit
18100eee50
|
@ -88,7 +88,6 @@ namespace OpenSim
|
|||
protected GridInfoService m_gridInfoService;
|
||||
|
||||
protected List<IClientNetworkServer> m_clientServers = new List<IClientNetworkServer>();
|
||||
protected List<RegionInfo> m_regionData = new List<RegionInfo>();
|
||||
|
||||
public ConsoleCommand CreateAccount = null;
|
||||
|
||||
|
@ -109,11 +108,6 @@ namespace OpenSim
|
|||
get { return m_clientServers; }
|
||||
}
|
||||
|
||||
public List<RegionInfo> RegionData
|
||||
{
|
||||
get { return m_regionData; }
|
||||
}
|
||||
|
||||
public new BaseHttpServer HttpServer
|
||||
{
|
||||
get { return m_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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue