[PATCH] cleanup: remove unused initextnotify() function and inited variable

Nicolas Sebrecht nicolas.s-dev at laposte.net
Wed May 11 19:36:09 BST 2011


Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
 offlineimap/init.py       |    1 -
 offlineimap/threadutil.py |    9 ---------
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/offlineimap/init.py b/offlineimap/init.py
index 7aa8f0b..3aaa679 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -328,7 +328,6 @@ class OfflineImap:
             signal.signal(signal.SIGUSR2,sig_handler)
     
             #various initializations that need to be performed:
-            threadutil.initexitnotify()       #TODO: Why?
             offlineimap.mbnames.init(config, syncaccounts)
 
             if options.singlethreading:
diff --git a/offlineimap/threadutil.py b/offlineimap/threadutil.py
index cef2195..7eca1b9 100644
--- a/offlineimap/threadutil.py
+++ b/offlineimap/threadutil.py
@@ -87,15 +87,6 @@ class threadlist:
 ######################################################################
 
 exitthreads = Queue(100)
-inited = 0
-
-def initexitnotify():
-    """Initialize the exit notify system.  This MUST be called from the
-    SAME THREAD that will call monitorloop BEFORE it calls monitorloop.
-    This SHOULD be called before the main thread starts any other
-    ExitNotifyThreads, or else it may miss the ability to catch the exit
-    status from them!"""
-    pass
 
 def exitnotifymonitorloop(callback):
     """An infinite "monitoring" loop watching for finished ExitNotifyThread's.
-- 
1.7.5.1.354.g761178





More information about the OfflineIMAP-project mailing list