Browse Source

remove flash.Vector display hack because it is not required anymore

Simon Krajewski 11 years ago
parent
commit
d38a9d723d
1 changed files with 0 additions and 11 deletions
  1. 0 11
      typer.ml

+ 0 - 11
typer.ml

@@ -1452,17 +1452,6 @@ and type_field ?(resume=false) ctx e i p mode =
 			end
 		with Not_found ->
 			if PMap.mem i c.cl_statics then error ("Cannot access static field " ^ i ^ " from a class instance") p;
-			(*
-				This is a fix to deal with optimize_completion which will call iterator()
-				on the expression for/in, which vectors do no have.
-			*)
-			if ctx.com.display <> DMNone && i = "iterator" && c.cl_path = (["flash"],"Vector") then begin
-				let it = TAnon {
-					a_fields = PMap.add "next" (mk_field "next" (TFun([],List.hd params)) p) PMap.empty;
-					a_status = ref Closed;
-				} in
-				AKExpr (mk (TField (e,FDynamic i)) (TFun([],it)) p)
-			end else
 			no_field())
 	| TDynamic t ->
 		(try