DSet already complains if we add a duplicate; no need to do so twice.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3293 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-01-05 06:00:37 +00:00
parent 920726f9f9
commit 7777a14c9c
@@ -1,5 +1,5 @@
//
// $Id: EntryAddedEvent.java,v 1.12 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -84,10 +84,7 @@ public class EntryAddedEvent extends NamedEvent
throws ObjectAccessException
{
if (!_alreadyApplied) {
DSet set = (DSet)target.getAttribute(_name);
if (!set.add(_entry)) {
Log.warning("Duplicate entryAdd: " + this);
}
((DSet)target.getAttribute(_name)).add(_entry);
}
return true;
}