contrib/jwrapper: remove illegal attribute generation
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 19 Jul 2015 16:05:16 +0000 (12:05 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 20 Jul 2015 19:37:48 +0000 (15:37 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/src/code_generator.nit

index 88a8f86..2a9d16e 100644 (file)
@@ -52,10 +52,6 @@ class CodeGenerator
                var class_content = new Array[String]
                class_content.add(gen_class_header(jclass.class_type))
 
-               if with_attributes then
-                       for id, jtype in jclass.attributes do class_content.add(gen_attribute(id, jtype))
-               end
-
                for id, methods_info in jclass.methods do
                        for method_info in methods_info do
                                var nid = id
@@ -136,11 +132,6 @@ class CodeGenerator
                return temp.join
        end
 
-       fun gen_attribute(jid: String, jtype: JavaType): String
-       do
-               return "\tvar {jid.to_nit_method_name}: {jtype.to_nit_type}\n"
-       end
-
        fun gen_method(jmethod_id: String, nmethod_id: String, jreturn_type: JavaType, jparam_list: Array[JavaType]): String
        do
                var java_params = ""