[gnome-games/applygsoc2009: 9/76] Delete useless functions



commit 1542d8780118478093db325975b15b5752c63f95
Author: Pablo Castellano <pablog src gnome org>
Date:   Thu Aug 26 04:40:18 2010 +0200

    Delete useless functions

 gnome-sudoku/src/lib/saver.py |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/saver.py b/gnome-sudoku/src/lib/saver.py
index 357bf81..b559d05 100644
--- a/gnome-sudoku/src/lib/saver.py
+++ b/gnome-sudoku/src/lib/saver.py
@@ -97,24 +97,6 @@ def open_game (ui, jar):
     # Display the notes
     ui.gsd.update_all_notes()
 
-def pickle_game (ui, target):
-    close_me = False
-    if type(target) in types.StringTypes:
-        target = file(target, 'w')
-        close_me = True
-    to_dump = jar_game(ui)
-    pickle.dump(to_dump, target)
-    if close_me:
-        target.close()
-
-def unpickle_game (ui, target):
-    close_me = False
-    if type(target) == str:
-        target = file(target, 'r')
-        close_me = True
-    open_game(ui, pickle.load(target))
-    if close_me:
-        target.close()
 
 class SudokuTracker:
 



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