From 00416168bb8a8f5bfabfdd031a741a053354f7ae Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 18 Aug 2009 21:34:51 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/crowd/chat/client/ChatDirector.as | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/as/com/threerings/crowd/chat/client/ChatDirector.as b/src/as/com/threerings/crowd/chat/client/ChatDirector.as index d205d04f7..5e1941626 100644 --- a/src/as/com/threerings/crowd/chat/client/ChatDirector.as +++ b/src/as/com/threerings/crowd/chat/client/ChatDirector.as @@ -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); } }