[gnome-games/sudoku-tube] Delete useless code



commit 7452c217db2b6cb04e10cf5d77554eea573b6a04
Author: Zhang Sen <zh jesse gmail com>
Date:   Mon Jul 13 20:40:10 2009 +0800

    Delete useless code

 gnome-sudoku/src/lib/main.py |   25 +------------------------
 1 files changed, 1 insertions(+), 24 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index d559910..c4ada73 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -133,8 +133,6 @@ class UI (gconf_wrapper.GConfWrapper):
         Like show highlight, update hints, start timer, etc."""
         self.timer.start_timing()
         self.update_statusbar()
-        if self.gconf['always_show_hints']:
-            self.gsd.update_all_hints()
 
     def _run_background_generator (self):
         """Generate puzzles in background"""
@@ -490,29 +488,8 @@ class UI (gconf_wrapper.GConfWrapper):
         else:
             self.gsd.show_impossible_implications = False
 
-    def auto_fill_cb (self, *args):
-        self.do_auto_fill()
-#        if not hasattr(self, 'autofilled'):
-#            self.autofilled = []
-#        if not hasattr(self, 'autofiller'):
-#            self.autofiller = Undo.UndoableObject(
-#                self.do_auto_fill,
-#                self.undo_auto_fill,
-#                self.history
-#                )
-#        self.autofiller.perform()
-
-    def do_auto_fill (self, *args):
-#        self.autofilled.append(self.gsd.auto_fill())
+    def auto_fill_cb (self, action):
         self._main_model.auto_fill()
-        if self.gconf['always_show_hints']:
-            self.gsd.update_all_hints()
-
-    def undo_auto_fill (self, *args):
-        for entry in self.autofilled.pop():
-            self.gsd.remove(entry[0], entry[1], do_removal = True)
-        if self.gconf['always_show_hints']:
-            self.gsd.update_all_hints()
 
     def auto_fill_current_square_cb (self, *args):
         self.gsd.auto_fill_current_entry()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]