[gnome-games/sudoku-tube] Delete unuse methods
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/sudoku-tube] Delete unuse methods
- Date: Tue, 14 Jul 2009 01:26:12 +0000 (UTC)
commit 905a87880a954479d9ba070384fb685aedf682dc
Author: Zhang Sen <zh jesse gmail com>
Date: Tue Jul 14 09:25:26 2009 +0800
Delete unuse methods
gnome-sudoku/src/lib/gsudoku.py | 36 ------------------------------------
1 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
index 071d463..fca0d41 100644
--- a/gnome-sudoku/src/lib/gsudoku.py
+++ b/gnome-sudoku/src/lib/gsudoku.py
@@ -480,15 +480,6 @@ class SudokuModel:
else:
self.grid = sudoku.InteractiveSudoku(grid, group_size = group_size)
- def _number_changed_cb(self, widget, new_value):
- # TODO
- widget.set_value(new_value)
- self._entry_validate(widget)
- if self.show_impossible_implications:
- self._mark_impossible_implications(widget.x, widget.y)
- if self.always_show_hints:
- self.update_all_hints()
-
def set_value(self, x, y, value):
result = []
old_conflicts = self._remove_old_conficts(x, y)
@@ -555,27 +546,6 @@ class SudokuModel:
if self.grid.check_for_completeness():
self._signal_completeness()
- def remove (self, x, y, do_removal = False):
- """Remove x, y from our visible grid.
-
- If do_removal, remove it from our underlying grid as well.
- """
- e = self.__entries__[(x, y)]
- if do_removal and self.grid and self.grid._get_(x, y):
- self.grid.remove(x, y)
- self._remove_error_highlight(x, y)
- # remove trackers
- for t in self._trackers_for_point(x, y):
- remove = []
- for crumb in self.trackers[t]:
- if crumb[0] == x and crumb[1] == y:
- remove.append(crumb)
- for r in remove:
- self.trackers[t].remove(r)
- if e.get_text():
- e.set_value(0)
- e.unset_color()
-
def auto_fill (self):
changed = set(self.grid.auto_fill()) # there are duplicate?
for coords, val in changed:
@@ -613,9 +583,3 @@ class SudokuModel:
lambda tkr: True in [t[0] == x and t[1] == y for t in tkr[1]],
self.trackers.items())
return [t[0] for t in track_for_point]
-
- def add_tracker (self, x, y, tracker, val = None):
- self.__entries__[(x, y)].set_color(self.get_tracker_color(tracker))
- if not val:
- val = self.grid._get_(x, y)
- self.trackers[tracker].append((x, y, val))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]