Remove pointless contains check in ScenePresence.RemoveAttachment()

bulletsim
Justin Clark-Casey (justincc) 2011-08-23 00:08:29 +01:00
parent 1f3ce48be1
commit afd5469eec
1 changed files with 1 additions and 6 deletions

View File

@ -3509,12 +3509,7 @@ namespace OpenSim.Region.Framework.Scenes
public void RemoveAttachment(SceneObjectGroup gobj) public void RemoveAttachment(SceneObjectGroup gobj)
{ {
lock (m_attachments) lock (m_attachments)
{ m_attachments.Remove(gobj);
if (m_attachments.Contains(gobj))
{
m_attachments.Remove(gobj);
}
}
} }
public bool ValidateAttachments() public bool ValidateAttachments()