mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Remove dead code
This commit is contained in:
parent
d424189025
commit
edfac7b348
@ -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<IndexInfo> 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<IDBRequest> 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<IndexInfo> 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<IDBRequest> request = GenerateWriteRequest();
|
||||
NS_ENSURE_TRUE(request, NS_ERROR_FAILURE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user