Merge: doc: fixed some typos and other misc. corrections
[nit.git] / src / metrics / poset_metrics.nit
index 8ec89b1..1fc8be5 100644 (file)
@@ -15,9 +15,7 @@
 # Metrics about the various posets of the model of a Nit program
 module poset_metrics
 
-import poset
 import metrics_base
-import frontend
 
 redef class ToolContext
        var poset_metrics_phase: Phase = new PosetMetricsPhase(self, null)
@@ -26,7 +24,7 @@ end
 private class PosetMetricsPhase
        super Phase
        
-       redef fun process_mainmodule(mainmodule)
+       redef fun process_mainmodule(mainmodule, given_mmodules)
        do
                if not toolcontext.opt_poset.value and not toolcontext.opt_all.value then return
 
@@ -34,8 +32,6 @@ private class PosetMetricsPhase
                print "--- Poset metrics ---"
                print "## Module importation hierarchy"
                model.mmodule_importation_hierarchy.print_metrics
-               print "## Module nesting hierarchy"
-               model.mmodule_nesting_hierarchy.print_metrics
                print "## Classdef hierarchy"
                model.mclassdef_hierarchy.print_metrics
                print "## Class hierarchy"