commit 770dda45ef43282d4a60863836cbcebd758f951e
parent 6ced9e58b4ecfd128e421d207e8fa85715de5a9e
Author: Jens Stutte <jstutte@mozilla.com>
Date: Wed, 3 Dec 2025 08:03:57 +0000
Bug 2003539 - Remove unused PutEvent variant. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D274762
Diffstat:
2 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/xpcom/threads/nsThreadPool.cpp b/xpcom/threads/nsThreadPool.cpp
@@ -138,12 +138,6 @@ void nsThreadPool::DebugLogPoolStatus(MutexAutoLock& aProofOfLock,
}
#endif
-nsresult nsThreadPool::PutEvent(nsIRunnable* aEvent,
- MutexAutoLock& aProofOfLock) {
- nsCOMPtr<nsIRunnable> event(aEvent);
- return PutEvent(event.forget(), NS_DISPATCH_NORMAL, aProofOfLock);
-}
-
nsresult nsThreadPool::PutEvent(already_AddRefed<nsIRunnable> aEvent,
DispatchFlags aFlags,
MutexAutoLock& aProofOfLock) {
diff --git a/xpcom/threads/nsThreadPool.h b/xpcom/threads/nsThreadPool.h
@@ -42,8 +42,6 @@ class nsThreadPool final : public mozilla::Runnable, public nsIThreadPool {
struct MRUIdleEntry; // forward declaration only, see nsThreadPool.cpp
void ShutdownThread(nsIThread* aThread);
- nsresult PutEvent(nsIRunnable* aEvent, mozilla::MutexAutoLock& aProofOfLock)
- MOZ_REQUIRES(mMutex);
nsresult PutEvent(already_AddRefed<nsIRunnable> aEvent, DispatchFlags aFlags,
mozilla::MutexAutoLock& aProofOfLock) MOZ_REQUIRES(mMutex);
void NotifyChangeToAllIdleThreads() MOZ_REQUIRES(mMutex);