From d11730c4fedb3119b945a1c830e5ba8f12107e79 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Tue, 21 Apr 2020 14:34:43 +0000 Subject: [PATCH] Bug 1618542 - Remove redundant assertions on infallible array operations. r=dom-workers-and-storage-reviewers,janv Differential Revision: https://phabricator.services.mozilla.com/D69042 --- dom/indexedDB/IDBObjectStore.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/dom/indexedDB/IDBObjectStore.cpp b/dom/indexedDB/IDBObjectStore.cpp index decf0bca2dfc..2a19a8bf9354 100644 --- a/dom/indexedDB/IDBObjectStore.cpp +++ b/dom/indexedDB/IDBObjectStore.cpp @@ -229,9 +229,7 @@ bool StructuredCloneWriteCallback(JSContext* aCx, return false; } - const DebugOnly newFile = - cloneWriteInfo->mFiles.EmplaceBack(mutableFile); - MOZ_ASSERT(newFile); + cloneWriteInfo->mFiles.EmplaceBack(mutableFile); return true; } @@ -293,10 +291,7 @@ bool StructuredCloneWriteCallback(JSContext* aCx, } } - const DebugOnly newFile = - cloneWriteInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob, - blob); - MOZ_ASSERT(newFile); + cloneWriteInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob, blob); return true; } @@ -338,9 +333,7 @@ bool CopyingStructuredCloneWriteCallback(JSContext* aCx, return false; } - const DebugOnly newFile = - cloneInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob, blob); - MOZ_ASSERT(newFile); + cloneInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob, blob); return true; } @@ -361,9 +354,7 @@ bool CopyingStructuredCloneWriteCallback(JSContext* aCx, return false; } - const DebugOnly newFile = - cloneInfo->mFiles.EmplaceBack(mutableFile); - MOZ_ASSERT(newFile); + cloneInfo->mFiles.EmplaceBack(mutableFile); return true; }