From edfac7b348fc2a7f5e2facd5b3324de622443f17 Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Fri, 18 Jun 2010 14:36:52 -0700 Subject: [PATCH] Remove dead code --- dom/indexedDB/IDBObjectStoreRequest.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) 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);