modelize: remove a useless local variable
authorJean Privat <privat@pryen.org>
Mon, 29 Sep 2014 19:52:43 +0000 (15:52 -0400)
committerJean Privat <jean@pryen.org>
Mon, 29 Sep 2014 20:18:03 +0000 (16:18 -0400)
Signed-off-by: Jean Privat <privat@pryen.org>

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