lib/markdown: remove some dead code
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Sep 2014 01:01:07 +0000 (21:01 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Sep 2014 01:11:41 +0000 (21:11 -0400)
Shame on me...

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/markdown/markdown.nit

index bd5e3be..5b73d3b 100644 (file)
@@ -1332,7 +1332,6 @@ class LineOther
                        line = line.next
                end
                # build block
-               var bk: Block
                if line != null and not line.is_empty then
                        var block = v.current_block.split(line.prev.as(not null))
                        if v.in_list and not was_empty then
@@ -1973,7 +1972,6 @@ redef class Text
                var c0: Char
                var c1: Char
                var c2: Char
-               var c3: Char
 
                if pos > 0 then
                        c0 = self[pos - 1]
@@ -1992,11 +1990,6 @@ redef class Text
                else
                        c2 = ' '
                end
-               if pos + 3 < length then
-                       c3 = self[pos + 3]
-               else
-                       c3 = ' '
-               end
 
                if c == '*' then
                        if c1 == '*' then