contrib/friends: fixes unread variables
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 21:16:16 +0000 (16:16 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 21:16:16 +0000 (16:16 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/friendz/src/friendz.nit
contrib/friendz/src/solver.nit

index 3877fe2..13915e6 100644 (file)
@@ -140,7 +140,6 @@ class TextButton
        var textx: Int
 
        redef fun draw(ctx) do
-               var x = self.x
                if self.toggleable then
                        var w
                        if self.toggled or not self.enabled then w = 6 else w = 7
index 604ac5c..18a8ade 100644 (file)
@@ -106,8 +106,6 @@ redef class Grid
                var min = 1
                var kind = 0
 
-               var tile: nullable Tile = null
-
                for x in [0..grid.width[ do
                        for y in [0..grid.height[ do
                                var t = grid.grid[x][y]
@@ -121,7 +119,6 @@ redef class Grid
                                var l = fs.length
                                if l == 0 then continue
 
-                               tile = t
                                if n == 0 then
                                        if min == 1 or start.length > l then
                                                start = fs