modelize: remove a useless local variable
[nit.git] / src / modelize / modelize_property.nit
index 5542e91..487110f 100644 (file)
@@ -121,7 +121,6 @@ redef class ModelBuilder
                # Collect undefined attributes
                var mparameters = new Array[MParameter]
                var initializers = new Array[MProperty]
-               var anode: nullable ANode = null
                for npropdef in nclassdef.n_propdefs do
                        if npropdef isa AAttrPropdef then
                                if npropdef.mpropdef == null then return # Skip broken attribute
@@ -147,10 +146,8 @@ redef class ModelBuilder
                                        # Add the setter to the list
                                        initializers.add(msetter.mproperty)
                                end
-                               if anode == null then anode = npropdef
                        end
                end
-               if anode == null then anode = nclassdef
 
                if the_root_init_mmethod == null then return