nitx: Remove the construction of packages importation graph
authorFlorian Deljarry <deljarry.florian@gmail.com>
Tue, 27 Aug 2019 21:17:29 +0000 (17:17 -0400)
committerFlorian Deljarry <deljarry.florian@gmail.com>
Tue, 27 Aug 2019 21:28:58 +0000 (17:28 -0400)
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>

src/nitx.nit

index 311580a..7162e43 100644 (file)
@@ -121,20 +121,11 @@ end
 redef class Catalog
        # Build the catalog for Nitx
        private fun build_catalog(model: Model, filter: nullable ModelFilter) do
-               # Compute the poset
+               # Scan all modules of collected packages
                for p in model.collect_mpackages(filter) do
                        var g = p.root
                        assert g != null
                        modelbuilder.scan_group(g)
-
-                       deps.add_node(p)
-                       for gg in p.mgroups do for m in gg.mmodules do
-                               for im in m.in_importation.direct_greaters do
-                                       var ip = im.mpackage
-                                       if ip == null or ip == p then continue
-                                       deps.add_edge(p, ip)
-                               end
-                       end
                end
                # Build the catalog
                for mpackage in model.collect_mpackages(filter) do