Remove unused SceneManager.TryGetAvatarsScene()
It makes far more sense anyway to use TryGetRootScenePresence().Scene, in common with the rest of the code This method could also return any scene for child or root agents, depending in which order the scenes happened to lie in the list0.7.2-post-fixes
parent
81daedcfe3
commit
9b229efdc5
|
@ -562,26 +562,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TryGetAvatarsScene(UUID avatarId, out Scene scene)
|
|
||||||
{
|
|
||||||
ScenePresence avatar = null;
|
|
||||||
|
|
||||||
lock (m_localScenes)
|
|
||||||
{
|
|
||||||
foreach (Scene mScene in m_localScenes)
|
|
||||||
{
|
|
||||||
if (mScene.TryGetScenePresence(avatarId, out avatar))
|
|
||||||
{
|
|
||||||
scene = mScene;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scene = null;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CloseScene(Scene scene)
|
public void CloseScene(Scene scene)
|
||||||
{
|
{
|
||||||
lock (m_localScenes)
|
lock (m_localScenes)
|
||||||
|
|
Loading…
Reference in New Issue