From e4b3f7ccbb4fe354acd3dc32ee87e9c2aac1f0e7 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Fri, 22 Apr 2016 15:30:41 +0800 Subject: [PATCH] Bug 1264642 - Part 1. Remove unused methods from IDBObjectStore::StructuredCloneWriteInfo. r=baku MozReview-Commit-ID: 8MIFD0MizOo --- dom/indexedDB/IDBObjectStore.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/dom/indexedDB/IDBObjectStore.cpp b/dom/indexedDB/IDBObjectStore.cpp index 153b42b59381..fdc9ad3388d9 100644 --- a/dom/indexedDB/IDBObjectStore.cpp +++ b/dom/indexedDB/IDBObjectStore.cpp @@ -107,36 +107,6 @@ struct IDBObjectStore::StructuredCloneWriteInfo { MOZ_COUNT_DTOR(StructuredCloneWriteInfo); } - - bool - operator==(const StructuredCloneWriteInfo& aOther) const - { - return this->mCloneBuffer.nbytes() == aOther.mCloneBuffer.nbytes() && - this->mCloneBuffer.data() == aOther.mCloneBuffer.data() && - this->mBlobOrMutableFiles == aOther.mBlobOrMutableFiles && - this->mDatabase == aOther.mDatabase && - this->mOffsetToKeyProp == aOther.mOffsetToKeyProp; - } - - bool - SetFromSerialized(const SerializedStructuredCloneWriteInfo& aOther) - { - if (aOther.data().IsEmpty()) { - mCloneBuffer.clear(); - } else { - auto* aOtherBuffer = - reinterpret_cast( - const_cast(aOther.data().Elements())); - if (!mCloneBuffer.copy(aOtherBuffer, aOther.data().Length())) { - return false; - } - } - - mBlobOrMutableFiles.Clear(); - - mOffsetToKeyProp = aOther.offsetToKeyProp(); - return true; - } }; namespace {