deskbar-applet r2335 - in trunk: . deskbar/core



Author: sebp
Date: Mon Aug 18 16:19:31 2008
New Revision: 2335
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2335&view=rev

Log:
Minor code cleanup

Modified:
   trunk/ChangeLog
   trunk/deskbar/core/DeskbarHistory.py

Modified: trunk/deskbar/core/DeskbarHistory.py
==============================================================================
--- trunk/deskbar/core/DeskbarHistory.py	(original)
+++ trunk/deskbar/core/DeskbarHistory.py	Mon Aug 18 16:19:31 2008
@@ -115,7 +115,6 @@
         """
         Load history
         """
-        new_history = []
         try:
             saved_history = cPickle.load(file(HISTORY_FILE))
             
@@ -136,7 +135,6 @@
             # The history file is corrupted
             LOGGER.error("Could not restore history")
             LOGGER.exception(e)
-            pass
         
         if len(self) == 0:
             self.append(0, "", EmptyHistoryAction())
@@ -154,7 +152,6 @@
             cPickle.dump(save, file(HISTORY_FILE, 'w'), cPickle.HIGHEST_PROTOCOL)
         except Exception, msg:
             LOGGER.error('History.save:%s', msg)
-        pass
     
     def append (self, timestamp, text, action):
         """



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