Bug 726961 - Remove unused variable database from IDBIndex::Create; r=khuey
authorMs2ger <ms2ger@gmail.com>
Tue, 21 Feb 2012 10:34:01 +0100
changeset 88726 7717885da054a4fcf8dd3200d4a410e26262bced
parent 88725 be00940ec6459724287713fa329e1f015e3bc438
child 88727 d2c244a447e32199c4ab9d094678e5840164f713
push id975
push userffxbld
push dateTue, 13 Mar 2012 21:39:16 +0000
treeherdermozilla-aurora@99faebf9dc36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs726961
milestone13.0a1
Bug 726961 - Remove unused variable database from IDBIndex::Create; r=khuey
dom/indexedDB/IDBIndex.cpp
--- a/dom/indexedDB/IDBIndex.cpp
+++ b/dom/indexedDB/IDBIndex.cpp
@@ -303,18 +303,16 @@ GenerateRequest(IDBIndex* aIndex)
 already_AddRefed<IDBIndex>
 IDBIndex::Create(IDBObjectStore* aObjectStore,
                  const IndexInfo* aIndexInfo)
 {
   NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
   NS_ASSERTION(aObjectStore, "Null pointer!");
   NS_ASSERTION(aIndexInfo, "Null pointer!");
 
-  IDBDatabase* database = aObjectStore->Transaction()->Database();
-
   nsRefPtr<IDBIndex> index = new IDBIndex();
 
   index->mObjectStore = aObjectStore;
   index->mId = aIndexInfo->id;
   index->mName = aIndexInfo->name;
   index->mKeyPath = aIndexInfo->keyPath;
   index->mKeyPathArray = aIndexInfo->keyPathArray;
   index->mUnique = aIndexInfo->unique;