Skip to content

Commit 7de817f

Browse files
committed
remove old task manager
1 parent aeaf27d commit 7de817f

File tree

4 files changed

+1241
-3369
lines changed

4 files changed

+1241
-3369
lines changed

direct/src/showbase/ShowBase.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)