Anally removed Comparator.equals() implementations that overrode
Object.equals() with equivalent functionality. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1799 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ComponentClass.java,v 1.4 2002/08/19 22:58:15 mdb Exp $
|
||||
// $Id: ComponentClass.java,v 1.5 2002/10/15 21:01:39 ray Exp $
|
||||
|
||||
package com.threerings.cast;
|
||||
|
||||
@@ -72,12 +72,6 @@ public class ComponentClass implements Serializable
|
||||
return (ca.componentClass.renderPriority -
|
||||
cb.componentClass.renderPriority);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public boolean equals (Object obj)
|
||||
{
|
||||
return (obj == this);
|
||||
}
|
||||
}
|
||||
|
||||
/** Increase this value when object's serialized state is impacted by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ModeUtil.java,v 1.3 2002/05/09 18:43:56 mdb Exp $
|
||||
// $Id: ModeUtil.java,v 1.4 2002/10/15 21:01:39 ray Exp $
|
||||
|
||||
package com.threerings.media.util;
|
||||
|
||||
@@ -52,10 +52,6 @@ public class ModeUtil
|
||||
// for same bitrates, prefer higher refresh rates
|
||||
return rr2 - rr1;
|
||||
}
|
||||
|
||||
public boolean equals (Object obj) {
|
||||
return this == obj;
|
||||
}
|
||||
};
|
||||
|
||||
// but we only add modes that meet our minimum requirements
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DirtyItemList.java,v 1.15 2002/09/26 23:35:10 mdb Exp $
|
||||
// $Id: DirtyItemList.java,v 1.16 2002/10/15 21:01:39 ray Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
@@ -339,12 +339,6 @@ public class DirtyItemList
|
||||
return (_axis == X_AXIS) ? (da.ox - db.ox) : (da.oy - db.oy);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public boolean equals (Object obj)
|
||||
{
|
||||
return (obj == this);
|
||||
}
|
||||
|
||||
/** The axis this comparator sorts on. */
|
||||
protected int _axis;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectSet.java,v 1.1 2002/09/23 21:53:23 mdb Exp $
|
||||
// $Id: ObjectSet.java,v 1.2 2002/10/15 21:01:39 ray Exp $
|
||||
|
||||
package com.threerings.miso.scene.util;
|
||||
|
||||
@@ -120,10 +120,6 @@ public class ObjectSet
|
||||
public int compare (Object o1, Object o2) {
|
||||
return o1.hashCode() - o2.hashCode();
|
||||
}
|
||||
|
||||
public boolean equals (Object other) {
|
||||
return this == other;
|
||||
}
|
||||
};
|
||||
|
||||
/** We start big because we know these will in general contain at
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DSet.java,v 1.20 2002/10/06 20:24:53 mdb Exp $
|
||||
// $Id: DSet.java,v 1.21 2002/10/15 21:01:39 ray Exp $
|
||||
|
||||
package com.threerings.presents.dobj;
|
||||
|
||||
@@ -348,10 +348,5 @@ public class DSet
|
||||
((Entry)o2).getKey() : (Comparable)o2;
|
||||
return c1.compareTo(c2);
|
||||
}
|
||||
|
||||
public boolean equals (Object obj) {
|
||||
// we don't care about comparing comparators
|
||||
return (obj == this);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user