cleanup: remove unused initextnotify() function and inited variable
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
136237b7dc
commit
21875852eb
@ -328,7 +328,6 @@ class OfflineImap:
|
|||||||
signal.signal(signal.SIGUSR2,sig_handler)
|
signal.signal(signal.SIGUSR2,sig_handler)
|
||||||
|
|
||||||
#various initializations that need to be performed:
|
#various initializations that need to be performed:
|
||||||
threadutil.initexitnotify() #TODO: Why?
|
|
||||||
offlineimap.mbnames.init(config, syncaccounts)
|
offlineimap.mbnames.init(config, syncaccounts)
|
||||||
|
|
||||||
if options.singlethreading:
|
if options.singlethreading:
|
||||||
|
@ -83,15 +83,6 @@ class threadlist:
|
|||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
exitthreads = Queue(100)
|
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):
|
def exitnotifymonitorloop(callback):
|
||||||
"""An infinite "monitoring" loop watching for finished ExitNotifyThread's.
|
"""An infinite "monitoring" loop watching for finished ExitNotifyThread's.
|
||||||
|
Loading…
Reference in New Issue
Block a user