Explorar el Código

[lua] remove special handling for Math class

Justin Donaldson hace 8 años
padre
commit
2b299163f0
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      src/generators/genlua.ml

+ 1 - 3
src/generators/genlua.ml

@@ -1711,10 +1711,8 @@ let generate_type ctx = function
 		| None -> ()
 		| None -> ()
 		| Some e ->
 		| Some e ->
 			ctx.inits <- e :: ctx.inits);
 			ctx.inits <- e :: ctx.inits);
-		(* Special case, want to add Math.__name__ only when required, handle here since Math is extern *)
 		let p = s_path ctx c.cl_path in
 		let p = s_path ctx c.cl_path in
-		if p = "Math" then generate_class___name__ ctx c;
-		(* Another special case for Std because we do not want to generate it if it's empty. *)
+		(* A special case for Std because we do not want to generate it if it's empty. *)
 		if p = "Std" && c.cl_ordered_statics = [] then
 		if p = "Std" && c.cl_ordered_statics = [] then
 			()
 			()
 		else if not c.cl_extern then
 		else if not c.cl_extern then