From 21875852eb2f7978d2ce24d8a93db995060caf49 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Wed, 11 May 2011 18:56:56 +0200 Subject: [PATCH] cleanup: remove unused initextnotify() function and inited variable Signed-off-by: Nicolas Sebrecht --- offlineimap/init.py | 1 - offlineimap/threadutil.py | 9 --------- 2 files changed, 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 24486e2..65028ee 100644 --- a/offlineimap/threadutil.py +++ b/offlineimap/threadutil.py @@ -83,15 +83,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.