mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
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:
parent
8354f52c43
commit
f3acf8d4d6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user