Переглянути джерело

desktop has its own connection.

Nicolas Cannasse 19 роки тому
батько
коміт
61f18721d7
1 змінених файлів з 1 додано та 13 видалено
  1. 1 13
      std/haxe/remoting/Connection.hx

+ 1 - 13
std/haxe/remoting/Connection.hx

@@ -48,11 +48,7 @@ class Connection implements Dynamic<Connection> {
 		var s = new haxe.Serializer();
 		s.serialize(params);
 		var params = s.toString().split("\\").join("\\\\");
-		var s;
-		if( __data )
-			s = flash.external.ExternalInterface.call(path+"."+f,params);
-		else
-			s = flash.external.ExternalInterface.call("haxe.remoting.Connection.doCall",path,f,params);
+		var s = flash.external.ExternalInterface.call("haxe.remoting.Connection.doCall",path,f,params);
 		if( s == null )
 			throw "Failed to call JS method "+__path.join(".");
 		return new haxe.Unserializer(s).unserialize();
@@ -125,14 +121,6 @@ class Connection implements Dynamic<Connection> {
 		return new Connection(null,[]);
 	}
 
-	public static function desktopConnect() : Connection {
-		if( !flash.external.ExternalInterface.available )
-			throw "External Interface not available";
-		if( flash.external.ExternalInterface.call(":desktop",":available") != "yes" )
-			throw "Could not connect to the Desktop";
-		return new Connection(true,[]);
-	}
-
 	#else js
 
 	static function jsRemoting() {