Remove two spurious m_sceneGraph != null checks in Scene.cs. It's set in constructor and never subsequent set to null.

xassetservice
Justin Clark-Casey (justincc) 2012-02-22 00:55:16 +00:00
parent cf9b3e7708
commit 5d31267185
1 changed files with 2 additions and 8 deletions

View File

@ -4256,24 +4256,18 @@ namespace OpenSim.Region.Framework.Scenes
/// </summary>
/// <param name="action"></param>
public void ForEachRootScenePresence(Action<ScenePresence> action)
{
if (m_sceneGraph != null)
{
m_sceneGraph.ForEachAvatar(action);
}
}
/// <summary>
/// Performs action on all scene presences (root and child)
/// </summary>
/// <param name="action"></param>
public void ForEachScenePresence(Action<ScenePresence> action)
{
if (m_sceneGraph != null)
{
m_sceneGraph.ForEachScenePresence(action);
}
}
/// <summary>
/// Get a group via its UUID