Nix some warnings. One shouldn't be coped with, and so let's let it NPE.
The other happens now in normal circumstances in msoy, and I'd rather not surround the call to super with an if to avoid this warning, and potentially kablooie in the future if other functionality is added to leftLocation in this base class... git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5918 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -575,11 +575,6 @@ public class ChatDirector extends BasicDirector
|
||||
*/
|
||||
public function enteredLocation (place :PlaceObject) :void
|
||||
{
|
||||
if (place == null) {
|
||||
log.warning("enteredLocation must be passed a non-null place object!");
|
||||
return;
|
||||
}
|
||||
|
||||
// nix our old location if we have one
|
||||
if (_place != null) {
|
||||
leftLocation(_place);
|
||||
@@ -599,8 +594,6 @@ public class ChatDirector extends BasicDirector
|
||||
if (place == _place) {
|
||||
_place.removeListener(this);
|
||||
_place = null;
|
||||
} else {
|
||||
log.warning("leftLocation called with unknown place?", "have", _place, "left", place);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user