Merge: GitHub api: Issue events, contributor stats, files
[nit.git] / src / semantize / local_var_init.nit
index 4889866..82fa0a4 100644 (file)
@@ -21,6 +21,7 @@ module local_var_init
 import flow
 
 redef class ToolContext
+       # Run `APropdef::do_local_var_init` on each propdef
        var local_var_init_phase: Phase = new LocalVarInitPhase(self, [flow_phase])
 end
 
@@ -44,11 +45,6 @@ private class LocalVarInitVisitor
 
        var toolcontext: ToolContext
 
-       init(toolcontext: ToolContext)
-       do
-               self.toolcontext = toolcontext
-       end
-
        # Local variables that are possibly unset (ie local variable without an initial value)
        var maybe_unset_vars: Set[Variable] = new HashSet[Variable]