Removed the PlaceObject argument from MessageHandler.handleEvent. You

already have that around in 99% of the cases that you're implementing
message handlers and you more likely have it casted to the type you're
interested in and don't get any use out of that extra argument and have to
import PlaceObject when you might not otherwise have had to.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@453 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-12 19:30:44 +00:00
parent 087fdd489c
commit 60c829d921
3 changed files with 9 additions and 10 deletions
@@ -1,5 +1,5 @@
//
// $Id: PlaceManager.java,v 1.18 2001/10/12 00:03:02 mdb Exp $
// $Id: PlaceManager.java,v 1.19 2001/10/12 19:30:44 mdb Exp $
package com.threerings.crowd.server;
@@ -235,7 +235,7 @@ public class PlaceManager
handler = (MessageHandler)_msghandlers.get(event.getName());
}
if (handler != null) {
handler.handleEvent(event, _plobj);
handler.handleEvent(event);
}
}
@@ -305,10 +305,8 @@ public class PlaceManager
* Invokes this message handler on the supplied event.
*
* @param event the message event received.
* @param target the place object on which the message event was
* received.
*/
public void handleEvent (MessageEvent event, PlaceObject target);
public void handleEvent (MessageEvent event);
}
/** A reference to the place object that we manage. */