2
0
Эх сурвалжийг харах

fixed unused-vars warnings

Nicolas Cannasse 12 жил өмнө
parent
commit
c562b78773
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      gencommon.ml

+ 4 - 1
gencommon.ml

@@ -6396,11 +6396,13 @@ struct
           mk_class_field (gen.gmk_internal_name "hx" "hashes_f") (basic.tarray hasht) false pos (Var { v_read = AccNormal; v_write = AccNormal }) [];
           mk_class_field (gen.gmk_internal_name "hx" "hashes_f") (basic.tarray hasht) false pos (Var { v_read = AccNormal; v_write = AccNormal }) [];
           mk_class_field (gen.gmk_internal_name "hx" "dynamics_f") (basic.tarray basic.tfloat) false pos (Var { v_read = AccNormal; v_write = AccNormal }) [];
           mk_class_field (gen.gmk_internal_name "hx" "dynamics_f") (basic.tarray basic.tfloat) false pos (Var { v_read = AccNormal; v_write = AccNormal }) [];
         ] in
         ] in
+		(*
         let rec last_ctor cl =
         let rec last_ctor cl =
           match cl.cl_constructor with
           match cl.cl_constructor with
             | None -> (match cl.cl_super with | None -> None | Some (cl,_) -> last_ctor cl)
             | None -> (match cl.cl_super with | None -> None | Some (cl,_) -> last_ctor cl)
             | Some c -> Some c
             | Some c -> Some c
         in
         in
+		*)
         (*
         (*
           in order for the next to work, we need to execute our script before InitFunction, so the expressions inside the variables are initialized by the constructor
           in order for the next to work, we need to execute our script before InitFunction, so the expressions inside the variables are initialized by the constructor
         *)
         *)
@@ -6901,6 +6903,7 @@ struct
     let gen = ctx.rcf_gen in
     let gen = ctx.rcf_gen in
     let basic = gen.gcon.basic in
     let basic = gen.gcon.basic in
     let pos = cl.cl_pos in
     let pos = cl.cl_pos in
+	(*
     let rec has_no_dynamic cl =
     let rec has_no_dynamic cl =
       if is_some cl.cl_dynamic then
       if is_some cl.cl_dynamic then
         false
         false
@@ -6908,7 +6911,7 @@ struct
         | None -> true
         | None -> true
         | Some(cl,_) -> has_no_dynamic cl
         | Some(cl,_) -> has_no_dynamic cl
     in
     in
-
+	*)
     (* Type.getClassFields() *)
     (* Type.getClassFields() *)
     if ctx.rcf_handle_statics then begin
     if ctx.rcf_handle_statics then begin
       let name = gen.gmk_internal_name "hx" "classFields" in
       let name = gen.gmk_internal_name "hx" "classFields" in