Bug 1749572 - Removed use of mozilla::Unused in dom/locks. r=saschanaz

Differential Revision: https://phabricator.services.mozilla.com/D228934
This commit is contained in:
Jake Senne 2024-11-15 08:15:00 +00:00
parent 8354f52c43
commit f3acf8d4d6

View File

@ -95,7 +95,7 @@ void LockManagerParent::ProcessRequestQueue(
}
aQueue.RemoveElementAt(0);
mManagedLocks->mHeldLocks.AppendElement(first);
Unused << NS_WARN_IF(!first->SendResolve(first->Data().lockMode(), true));
(void)NS_WARN_IF(!first->SendResolve(first->Data().lockMode(), true));
}
}
@ -158,8 +158,7 @@ IPCResult LockManagerParent::RecvPLockRequestConstructor(
mManagedLocks->mHeldLocks.RemoveElementsBy(
[&aRequest](const RefPtr<LockRequestParent>& aHeld) {
if (aHeld->Data().name() == aRequest.name()) {
Unused << NS_WARN_IF(
!PLockRequestParent::Send__delete__(aHeld, true));
(void)NS_WARN_IF(!PLockRequestParent::Send__delete__(aHeld, true));
return true;
}
return false;
@ -167,7 +166,7 @@ IPCResult LockManagerParent::RecvPLockRequestConstructor(
queue.InsertElementAt(0, actor);
} else if (aRequest.ifAvailable() &&
(!queue.IsEmpty() || !IsGrantableRequest(actor->Data()))) {
Unused << NS_WARN_IF(!aActor->SendResolve(aRequest.lockMode(), false));
(void)NS_WARN_IF(!aActor->SendResolve(aRequest.lockMode(), false));
return IPC_OK();
} else {
queue.AppendElement(actor);