[gnome-games] gnome-sudoku: Delete two unused variables
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] gnome-sudoku: Delete two unused variables
- Date: Thu, 14 May 2009 22:01:31 -0400 (EDT)
commit 7f0bc3c083762905f97469e2c2aa8edc8b2b2328
Author: Zhang Sen <zh jesse gmail com>
Date: Fri May 15 09:58:11 2009 +0800
gnome-sudoku: Delete two unused variables
---
gnome-sudoku/src/lib/sudoku.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/gnome-sudoku/src/lib/sudoku.py b/gnome-sudoku/src/lib/sudoku.py
index 7a83de5..e1352bf 100644
--- a/gnome-sudoku/src/lib/sudoku.py
+++ b/gnome-sudoku/src/lib/sudoku.py
@@ -272,7 +272,6 @@ class SudokuSolver (SudokuGrid):
def auto_fill_for_xy (self, x, y):
"""Fill the square x,y if possible."""
possible = self.gen_set - self.rows[y] - self.cols[x] - self.boxes[self.box_by_coords[(x, y)]]
- changed = []
if len(possible) == 1:
val = possible.pop()
self.add(x, y, val)
@@ -434,7 +433,7 @@ class SudokuSolver (SudokuGrid):
self.trail.append(('+', guess_obj))
self.breadcrumbs.append(guess_obj)
try:
- filled = self.auto_fill()
+ self.auto_fill()
except NotImplementedError:
self.trail.append('Problem filling coordinates after guess')
self.unwrap_guess(guess_obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]