2
0
Simon Krajewski 11 жил өмнө
parent
commit
9616b93e39
3 өөрчлөгдсөн 1 нэмэгдсэн , 7 устгасан
  1. 0 4
      codegen.ml
  2. 0 2
      extra/ImportAll.hx
  3. 1 1
      typeload.ml

+ 0 - 4
codegen.ml

@@ -620,9 +620,6 @@ let on_inherit ctx c p h =
 	| HExtends { tpackage = ["haxe";"remoting"]; tname = "AsyncProxy"; tparams = [TPType(CTPath t)] } ->
 		extend_remoting ctx c t p true true;
 		false
-	| HExtends { tpackage = ["mt"]; tname = "AsyncProxy"; tparams = [TPType(CTPath t)] } ->
-		extend_remoting ctx c t p true false;
-		false
 	| HExtends { tpackage = ["haxe";"xml"]; tname = "Proxy"; tparams = [TPExpr(EConst (String file),p);TPType t] } ->
 		extend_xml_proxy ctx c t file p;
 		true
@@ -1230,7 +1227,6 @@ let rec is_volatile t =
 		is_volatile (!f())
 	| TType (t,tl) ->
 		(match t.t_path with
-		| ["mt";"flash"],"Volatile" -> true
 		| _ -> is_volatile (apply_params t.t_params tl t.t_type))
 	| _ ->
 		false

+ 0 - 2
extra/ImportAll.hx

@@ -44,8 +44,6 @@ class ImportAll {
 			if( !Context.defined("flash") || Context.defined("flash9") ) return;
 		case "flash":
 			if( !Context.defined("flash9") ) return;
-		case "mt","mtwin":
-			return;
 		case "sys":
 			if( !Context.defined("neko") && !Context.defined("php") && !Context.defined("cpp") ) return;
 		case "java":

+ 1 - 1
typeload.ml

@@ -999,7 +999,7 @@ let check_extends ctx c t p = match follow t with
 	| TInst ({ cl_path = [],"Array" },_)
 	| TInst ({ cl_path = [],"String" },_)
 	| TInst ({ cl_path = [],"Date" },_)
-	| TInst ({ cl_path = [],"Xml" },_) when ((not (platform ctx.com Cpp)) && (match c.cl_path with ("mt" | "flash") :: _ , _ -> false | _ -> true)) ->
+	| TInst ({ cl_path = [],"Xml" },_) ->
 		error "Cannot extend basic class" p;
 	| TInst (csup,params) ->
 		if is_parent c csup then error "Recursive class" p;