Remove pointless contains check in ScenePresence.RemoveAttachment()

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-23 00:08:29 +01:00
parent 1f3ce48be1
commit afd5469eec

View File

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