Bug 804790 - Remove usused file in nsDOMDeviceStorage::GetRootDirectory(). r=bent
authorDoug Turner <dougt@dougt.org>
Wed, 24 Oct 2012 08:31:48 -0700
changeset 111245 fd6c7fa6b826c8c9d48fee2ff02e75b697af461e
parent 111244 9a4531d2d243c224087d81b032ea9eabbbb6fc17
child 111246 8aa98d89341f5dfc95623502e29b27c511eccd3b
push id16963
push userdougt@mozilla.com
push dateWed, 24 Oct 2012 15:31:55 +0000
treeherdermozilla-inbound@fd6c7fa6b826 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbent
bugs804790
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 804790 - Remove usused file in nsDOMDeviceStorage::GetRootDirectory(). r=bent
dom/devicestorage/nsDeviceStorage.cpp
--- a/dom/devicestorage/nsDeviceStorage.cpp
+++ b/dom/devicestorage/nsDeviceStorage.cpp
@@ -1930,18 +1930,16 @@ nsDOMDeviceStorage::Stat(nsIDOMDOMReques
 }
 
 NS_IMETHODIMP
 nsDOMDeviceStorage::GetRootDirectory(nsIFile** aRootDirectory)
 {
   if (!mRootDirectory) {
     return NS_ERROR_FAILURE;
   }
-
-  nsCOMPtr<nsIFile> file;
   return mRootDirectory->Clone(aRootDirectory);
 }
 
 NS_IMETHODIMP
 nsDOMDeviceStorage::Enumerate(const JS::Value & aName,
                              const JS::Value & aOptions,
                              JSContext* aCx,
                              uint8_t aArgc,