aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-12-07 21:15:55 +0000
committerJustin Clark-Casey (justincc)2011-12-07 21:17:13 +0000
commiteda770e978c09c756d15ba62dbbf6ee34a61b2f5 (patch)
treeb05dd9f768f332fb9c5fe40f0b2309f9b822fac6 /OpenSim/Region/Framework/Scenes/SceneManager.cs
parentOn an Exception in Scene.RemoveClient(), always remove the client (and SP) st... (diff)
downloadopensim-SC-eda770e978c09c756d15ba62dbbf6ee34a61b2f5.zip
opensim-SC-eda770e978c09c756d15ba62dbbf6ee34a61b2f5.tar.gz
opensim-SC-eda770e978c09c756d15ba62dbbf6ee34a61b2f5.tar.bz2
opensim-SC-eda770e978c09c756d15ba62dbbf6ee34a61b2f5.tar.xz
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
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneManager.cs20
1 files changed, 0 insertions, 20 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs
index 0491205..d73a959 100644
--- a/OpenSim/Region/Framework/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs
@@ -562,26 +562,6 @@ namespace OpenSim.Region.Framework.Scenes
562 return false; 562 return false;
563 } 563 }
564 564
565 public bool TryGetAvatarsScene(UUID avatarId, out Scene scene)
566 {
567 ScenePresence avatar = null;
568
569 lock (m_localScenes)
570 {
571 foreach (Scene mScene in m_localScenes)
572 {
573 if (mScene.TryGetScenePresence(avatarId, out avatar))
574 {
575 scene = mScene;
576 return true;
577 }
578 }
579 }
580
581 scene = null;
582 return false;
583 }
584
585 public void CloseScene(Scene scene) 565 public void CloseScene(Scene scene)
586 { 566 {
587 lock (m_localScenes) 567 lock (m_localScenes)