Bug 1704887 - Discard results of RemoveElement for DelayedRunnable r=necko-reviewers,xpcom-reviewers,mccr8,valentin

This silences a lint error on the previous patches in the series.

Differential Revision: https://phabricator.services.mozilla.com/D113160
This commit is contained in:
Kris Wright 2021-04-22 21:32:39 +00:00
Родитель a8ff610593
Коммит aa02bb3f95
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -283,7 +283,7 @@ void nsStreamTransportService::OnDelayedRunnableRan(
DelayedRunnable* aRunnable) {
MOZ_ASSERT(IsOnCurrentThread());
auto delayedRunnables = mScheduledDelayedRunnables.Lock();
delayedRunnables->RemoveElement(aRunnable);
Unused << delayedRunnables->RemoveElement(aRunnable);
}
NS_IMPL_ISUPPORTS(nsStreamTransportService, nsIStreamTransportService,

Просмотреть файл

@ -121,7 +121,7 @@ void TaskQueue::OnDelayedRunnableScheduled(DelayedRunnable* aRunnable) {
void TaskQueue::OnDelayedRunnableRan(DelayedRunnable* aRunnable) {
MOZ_ASSERT(IsOnCurrentThread());
mScheduledDelayedRunnables.RemoveElement(aRunnable);
Unused << mScheduledDelayedRunnables.RemoveElement(aRunnable);
}
auto TaskQueue::CancelDelayedRunnables() -> RefPtr<CancelPromise> {

Просмотреть файл

@ -151,7 +151,7 @@ void ThreadEventTarget::OnDelayedRunnableScheduled(DelayedRunnable* aRunnable) {
void ThreadEventTarget::OnDelayedRunnableRan(DelayedRunnable* aRunnable) {
MOZ_ASSERT(IsOnCurrentThread());
mScheduledDelayedRunnables.RemoveElement(aRunnable);
Unused << mScheduledDelayedRunnables.RemoveElement(aRunnable);
}
void ThreadEventTarget::NotifyShutdown() {