mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1630802 - P4. Remove unused member. r=bholley
It lead the AbstractThread's assumption that there can only be one active per thread be invalid. Differential Revision: https://phabricator.services.mozilla.com/D71441
This commit is contained in:
parent
61ac17fa16
commit
fe4218a373
@ -24,7 +24,6 @@
|
||||
#include "jsfriendapi.h"
|
||||
#include "js/ContextOptions.h"
|
||||
#include "js/LocaleSensitive.h"
|
||||
#include "mozilla/AbstractThread.h"
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
#include "mozilla/Atomics.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
@ -2229,13 +2228,10 @@ WorkerThreadPrimaryRunnable::Run() {
|
||||
class MOZ_STACK_CLASS SetThreadHelper final {
|
||||
// Raw pointer: this class is on the stack.
|
||||
WorkerPrivate* mWorkerPrivate;
|
||||
RefPtr<AbstractThread> mAbstractThread;
|
||||
|
||||
public:
|
||||
SetThreadHelper(WorkerPrivate* aWorkerPrivate, WorkerThread* aThread)
|
||||
: mWorkerPrivate(aWorkerPrivate),
|
||||
mAbstractThread(AbstractThread::CreateXPCOMThreadWrapper(
|
||||
NS_GetCurrentThread(), false)) {
|
||||
: mWorkerPrivate(aWorkerPrivate) {
|
||||
MOZ_ASSERT(aWorkerPrivate);
|
||||
MOZ_ASSERT(aThread);
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
#include "mozilla/dom/MessageEvent.h"
|
||||
#include "mozilla/dom/MessageEventBinding.h"
|
||||
#include "mozilla/AbstractThread.h"
|
||||
#include "mozilla/PerformanceUtils.h"
|
||||
#include "nsProxyRelease.h"
|
||||
#include "nsQueryObject.h"
|
||||
|
Loading…
Reference in New Issue
Block a user