diff --git a/dom/indexedDB/IDBObjectStoreRequest.cpp b/dom/indexedDB/IDBObjectStoreRequest.cpp index 39b8bd607efa..f8b865607ce2 100644 --- a/dom/indexedDB/IDBObjectStoreRequest.cpp +++ b/dom/indexedDB/IDBObjectStoreRequest.cpp @@ -996,17 +996,6 @@ IDBObjectStoreRequest::Modify(nsIVariant* /* aValue */, return NS_ERROR_ILLEGAL_VALUE; } - // Obtain the list of indexes that we'll need to update. - nsTArray indexes; - ObjectStoreInfo* info = GetObjectStoreInfo(); - if (!info) { - NS_ERROR("Unable to get info on object store!"); - return NS_ERROR_UNEXPECTED; - } - for (nsTArray_base::size_type i = 0; i < info->indexes.Length(); i++) { - indexes.AppendElement(info->indexes[i]); - } - nsRefPtr request = GenerateWriteRequest(); NS_ENSURE_TRUE(request, NS_ERROR_FAILURE); @@ -1048,17 +1037,6 @@ IDBObjectStoreRequest::AddOrModify(nsIVariant* /* aValue */, return NS_ERROR_ILLEGAL_VALUE; } - // Obtain the list of indexes that we'll need to update. - nsTArray indexes; - ObjectStoreInfo* info = GetObjectStoreInfo(); - if (!info) { - NS_ERROR("Unable to get info on object store!"); - return NS_ERROR_UNEXPECTED; - } - for (nsTArray_base::size_type i = 0; i < info->indexes.Length(); i++) { - indexes.AppendElement(info->indexes[i]); - } - nsRefPtr request = GenerateWriteRequest(); NS_ENSURE_TRUE(request, NS_ERROR_FAILURE);