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 list
iar_mods
Justin Clark-Casey (justincc) 2011-12-07 21:15:55 +00:00
parent 3d95015686
commit eda770e978
1 changed files with 0 additions and 20 deletions

View File

@ -562,26 +562,6 @@ namespace OpenSim.Region.Framework.Scenes
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)
{
lock (m_localScenes)