src/astprinter: fixes useless null comparison
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 20:58:31 +0000 (15:58 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 20:58:31 +0000 (15:58 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/astprinter.nit

index 219b61a..1a4d804 100644 (file)
@@ -47,15 +47,6 @@ private class ASTPrinterVisitor
        do
                if last_current != current_node then
                        last_current = current_node
-                       var l = current_node._location
-                       if l != null then
-                               eol
-                               out.add(s)
-                               out.add("\t# {l.colored_line("0;32").split_with('\n').first}")
-                               has_eol = false
-                               eol
-                               return
-                       end
                end
                out.add(s)
                has_eol = false