gnome-games r9012 - trunk/gnome-sudoku/src/lib



Author: thomashpa
Date: Wed Apr  8 10:59:59 2009
New Revision: 9012
URL: http://svn.gnome.org/viewvc/gnome-games?rev=9012&view=rev

Log:
dead code removal

Modified:
   trunk/gnome-sudoku/src/lib/main.py

Modified: trunk/gnome-sudoku/src/lib/main.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/main.py	(original)
+++ trunk/gnome-sudoku/src/lib/main.py	Wed Apr  8 10:59:59 2009
@@ -131,8 +131,6 @@
     </ui>'''
 
     initial_prefs = {'group_size':9,
-                     'font_zoom':0,
-                     'zoom_on_resize':1,
                      'always_show_hints':0,
                      'player':os.environ.get('USERNAME',''),
                      'difficulty':0.0,
@@ -510,7 +508,7 @@
         if (self.gsd.grid
             and self.gsd.grid.is_changed()
             and (not self.won)):
-            self.save_game(self) # autosave...
+            self.save_game(self)
         if gtk.main_level() > 1:
             # If we are in an embedded mainloop, that means that one
             # of our "swallowed" dialogs is active, in which case we
@@ -565,16 +563,6 @@
     def save_game (self, *args):
         self.sudoku_tracker.save_game(self)
 
-    @simple_debug
-    def zoom_in_cb (self,*args):
-        self.gh.change_font_size(multiplier=1.1)
-        self.zoom = self.zoom * 1.1
-
-    @simple_debug
-    def zoom_out_cb (self,*args):
-        self.gh.change_font_size(multiplier=0.9)
-        self.zoom = self.zoom * 0.9
-
     def full_screen_cb (self, *args):
         if not hasattr(self,'is_fullscreen'): self.is_fullscreen = False
         if self.is_fullscreen:
@@ -763,14 +751,6 @@
         if self.gsd.grid and self.gsd.grid.is_changed() and not self.won:
             self.sudoku_tracker.save_game(self)
 
-    def offer_to_load_autosaved_file (self):
-        pass
-
-    @simple_debug
-    def load_autosave (self, filename):
-        saver.unpickle_game(self,filename)
-        self.history.clear()
-
     @simple_debug
     def show_about (self, *args):
         about = gtk.AboutDialog()
@@ -992,4 +972,3 @@
     import defaults
     defaults.DATA_DIR == '/tmp/'; DATA_DIR=='/tmp/'
 
-    



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