@@ -1681,17 +1681,6 @@ def restart(self):
16811681 self .taskMgr .add (self .__audioLoop , 'audioLoop' , priority = 60 )
16821682 self .eventMgr .restart ()
16831683
1684- if not hasattr (taskMgr , 'mgr' ):
1685- # If we're using the old task manager, we need to have an
1686- # explicit task to manage the async load requests. (On
1687- # the new task manager, this is built-in.)
1688- def asyncLoad (task ):
1689- task .mgr .poll ()
1690- return task .cont
1691- task = Task .Task (asyncLoad )
1692- task .mgr = AsyncTaskManager .getGlobalPtr ()
1693- taskMgr .add (task , 'asyncLoad' )
1694-
16951684 def shutdown (self ):
16961685 self .taskMgr .remove ('audioLoop' )
16971686 self .taskMgr .remove ('igLoop' )
@@ -1702,12 +1691,6 @@ def shutdown(self):
17021691 self .taskMgr .remove ('ivalLoop' )
17031692 self .eventMgr .shutdown ()
17041693
1705- if not hasattr (taskMgr , 'mgr' ):
1706- # If we're using the old task manager, we need to have an
1707- # explicit task to manage the async load requests. (On
1708- # the new task manager, this is built-in.)
1709- taskMgr .remove ('asyncLoad' )
1710-
17111694 def getBackgroundColor (self , win = None ):
17121695 """
17131696 Returns the current window background color. This assumes
0 commit comments