lib/ai: fixes unused local variables
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 19:27:29 +0000 (14:27 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 20:19:51 +0000 (15:19 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/ai/search.nit

index 64904ee..69b5c0d 100644 (file)
@@ -159,8 +159,6 @@ interface SearchProblem[S: Object, A]
        # `steps` is the maximum number of steps a giver configuration can run.
        fun run_configs(steps: Int)
        do
-               var s
-
                var c = 0
                loop
                        if astar.run_config(steps, c, "A*") then break
@@ -597,7 +595,7 @@ class SearchSolver[S: Object, A]
                print msg
 
                var t = new Clock
-               var res = run_steps(steps)
+               run_steps(steps)
                print "\t{self}"
                var l = t.lapse
                print "\ttime={l}"