From a9d5ca01e2cf3049f92860cb54feb15a7396caac Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 26 Oct 2006 01:49:44 +0000 Subject: [PATCH] We don't need the application to be passed-in, it's always statically accessible. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4436 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/presents/client/Client.as | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/as/com/threerings/presents/client/Client.as b/src/as/com/threerings/presents/client/Client.as index e0d4c1d9e..6483df5da 100644 --- a/src/as/com/threerings/presents/client/Client.as +++ b/src/as/com/threerings/presents/client/Client.as @@ -28,10 +28,9 @@ public class Client extends EventDispatcher private static const log :Log = Log.getLog(Client); - public function Client (creds :Credentials, app :Application) + public function Client (creds :Credentials) { _creds = creds; - _app = app; } /** @@ -98,7 +97,7 @@ public class Client extends EventDispatcher public function callLater (fn :Function, args :Array = null) :void { - _app.callLater(fn, args); + Application.application.callLater(fn, args); } /** @@ -106,7 +105,7 @@ public class Client extends EventDispatcher */ public function getStage () :Stage { - return _app.stage; + return Application.application.stage; } public function getHostname () :String @@ -372,9 +371,6 @@ public class Client extends EventDispatcher /** The credentials we used to authenticate with the server. */ protected var _creds :Credentials; - /** The app we're in, needed for creating the Communicator. */ - protected var _app :Application; - /** The version string reported to the server at auth time. */ protected var _version :String = "";