neo: Fix linking between `MProperty` and `MPropDef`.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Thu, 23 Oct 2014 19:18:11 +0000 (15:18 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Thu, 23 Oct 2014 19:18:11 +0000 (15:18 -0400)
At loading, `neo.nit` linked each `MPropDef` two times to its
`MProperty`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/neo.nit

index a45c91c..51d8a8f 100644 (file)
@@ -603,14 +603,6 @@ class NeoModel
                end
                mentities[node] = mprop
                set_doc(node, mprop)
-               for npropdef in node.in_nodes("DEFINES") do
-                       var mpropdef = to_mpropdef(model, npropdef)
-                       if npropdef["is_intro"].as(Bool) then
-                               mprop.mpropdefs.unshift mpropdef
-                       else
-                               mprop.mpropdefs.add mpropdef
-                       end
-               end
                return mprop
        end