Franco Ponticelli 14 ani în urmă
părinte
comite
2580cb0488
1 a modificat fișierele cu 1 adăugiri și 9 ștergeri
  1. 1 9
      optimizer.ml

+ 1 - 9
optimizer.ml

@@ -492,18 +492,10 @@ let reduce_expression ctx e =
 *)
 	
 let filter_dead_classes com =
-	let must_keep_classes = match com.platform with
-(*		| Flash
-		| Flash9 ->
-			[["flash"], "Lib"]
-		| Js -> 
-			[["js"], "Lib"] *)
-		| _ -> 
-			[] in
 	com.types <- List.filter (fun t ->
 		match t with
 		| TClassDecl c ->
-			if c.cl_extern || (List.exists (fun i -> i = c.cl_path) must_keep_classes) then 
+			if c.cl_extern then 
 				true 
 			else (match (c.cl_ordered_statics, c.cl_ordered_fields, c.cl_constructor) with
 			| ([], [], None) ->