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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user