minor: remove redundant grp != null check from AM.UpdateKnownItem()

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-09-13 22:24:33 +01:00
parent 8880aea728
commit 62b3e74bc5
1 changed files with 33 additions and 36 deletions

View File

@ -706,8 +706,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
/// <param name="itemID"></param> /// <param name="itemID"></param>
/// <param name="agentID"></param> /// <param name="agentID"></param>
public void UpdateKnownItem(IClientAPI remoteClient, SceneObjectGroup grp, UUID itemID, UUID agentID) public void UpdateKnownItem(IClientAPI remoteClient, SceneObjectGroup grp, UUID itemID, UUID agentID)
{
if (grp != null)
{ {
if (grp.HasGroupChanged || grp.ContainsScripts()) if (grp.HasGroupChanged || grp.ContainsScripts())
{ {
@ -750,7 +748,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
grp.UUID, grp.AttachmentPoint); grp.UUID, grp.AttachmentPoint);
} }
} }
}
/// <summary> /// <summary>
/// Attach this scene object to the given avatar. /// Attach this scene object to the given avatar.