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

@ -4257,10 +4257,7 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="action"></param>
public void ForEachRootScenePresence(Action<ScenePresence> action)
{
if (m_sceneGraph != null)
{
m_sceneGraph.ForEachAvatar(action);
}
m_sceneGraph.ForEachAvatar(action);
}
/// <summary>
@ -4269,10 +4266,7 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="action"></param>
public void ForEachScenePresence(Action<ScenePresence> action)
{
if (m_sceneGraph != null)
{
m_sceneGraph.ForEachScenePresence(action);
}
m_sceneGraph.ForEachScenePresence(action);
}
/// <summary>