Skip to content

Commit 62bd789

Browse files
author
Jean-Yves Avenard
committed
Bug 1505910 - P3. Remove now unused AsTaskQueue(). r=gerald
Depends on D11492 Differential Revision: https://phabricator.services.mozilla.com/D11493 --HG-- extra : moz-landing-system : lando
1 parent 6ba9a04 commit 62bd789

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

xpcom/threads/AbstractThread.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ class AbstractThread : public nsISerialEventTarget
101101
bool RequiresTailDispatch(AbstractThread* aThread) const;
102102
bool RequiresTailDispatchFromCurrentThread() const;
103103

104-
virtual TaskQueue* AsTaskQueue() { MOZ_CRASH("Not a task queue!"); }
105104
virtual nsIEventTarget* AsEventTarget() { MOZ_CRASH("Not an event target!"); }
106105

107106
// Returns the non-DocGroup version of AbstractThread on the main thread.

xpcom/threads/TaskQueue.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ class TaskQueue : public AbstractThread
6363

6464
TaskDispatcher& TailDispatcher() override;
6565

66-
TaskQueue* AsTaskQueue() override { return this; }
67-
6866
MOZ_MUST_USE nsresult
6967
Dispatch(already_AddRefed<nsIRunnable> aRunnable,
7068
DispatchReason aReason = NormalDispatch) override

0 commit comments

Comments
 (0)