From: Florian Deljarry Date: Tue, 27 Aug 2019 21:17:29 +0000 (-0400) Subject: nitx: Remove the construction of packages importation graph X-Git-Url: http://nitlanguage.org nitx: Remove the construction of packages importation graph Signed-off-by: Florian Deljarry --- diff --git a/src/nitx.nit b/src/nitx.nit index 311580a..7162e43 100644 --- a/src/nitx.nit +++ b/src/nitx.nit @@ -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