I think these are pretty well tested.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@285 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-05-01 02:27:06 +00:00
parent c98100eb8f
commit 04dd58d759
2 changed files with 0 additions and 18 deletions
@@ -93,15 +93,6 @@ public class StageLocation extends SimpleStreamableObject
*/
public boolean equals (Object other)
{
// TEMP
if (other instanceof com.threerings.whirled.spot.data.SceneLocation) {
com.threerings.stage.Log.warning(
"Illegal compare of SceneLocation and Location!!!");
Thread.dumpStack(); // this will help us find logic errors,
// as a SceneLocation and a Location shouldn't be compared..
}
// END: temp
if (other instanceof StageLocation) {
StageLocation that = (StageLocation) other;
return (this.x == that.x) && (this.y == that.y);
@@ -66,15 +66,6 @@ public class SceneLocation extends SimpleStreamableObject
// documentation inherited
public boolean equals (Object other)
{
// TEMP
if (other instanceof Location) {
com.threerings.whirled.spot.Log.warning(
"Illegal compare of SceneLocation and Location!!!");
Thread.dumpStack(); // this will help us find logic errors,
// as a SceneLocation and a Location shouldn't be compared
}
// END: temp
return (other instanceof SceneLocation) &&
this.loc.equals(((SceneLocation) other).loc);
}