Bug 611396: Remove 3 unused 'rv' variables from StartupCache.cpp. r=dwiitte a=bsmedberg
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 30 Nov 2010 21:27:30 -0800
changeset 58427 d48a0e23feec5d4aaa14f8cf2024bd97943d6271
parent 58426 17d1fcf74e5c36018cb6697eb09f7a0d1b4dfae6
child 58428 76b44542c5c7c93a35555acbe3582c95f625cbe6
push id17289
push userdholbert@mozilla.com
push dateWed, 01 Dec 2010 05:30:30 +0000
treeherdermozilla-central@d48a0e23feec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwiitte, bsmedberg
bugs611396
milestone2.0b8pre
first release with
nightly linux32
d48a0e23feec / 4.0b8pre / 20101201030318 / files
nightly linux64
d48a0e23feec / 4.0b8pre / 20101201030318 / files
nightly mac
d48a0e23feec / 4.0b8pre / 20101201030318 / files
nightly win32
d48a0e23feec / 4.0b8pre / 20101201030318 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 611396: Remove 3 unused 'rv' variables from StartupCache.cpp. r=dwiitte a=bsmedberg
startupcache/StartupCache.cpp
--- a/startupcache/StartupCache.cpp
+++ b/startupcache/StartupCache.cpp
@@ -466,46 +466,42 @@ StartupCacheDebugOutputStream::CheckRefe
   mObjectMap->PutEntry(aObject);
   return PR_TRUE;
 }
 
 // nsIObjectOutputStream implementation
 nsresult
 StartupCacheDebugOutputStream::WriteObject(nsISupports* aObject, PRBool aIsStrongRef)
 {
-  nsresult rv;
-  
   nsCOMPtr<nsISupports> rootObject(do_QueryInterface(aObject));
   
   NS_ASSERTION(rootObject.get() == aObject,
                "bad call to WriteObject -- call WriteCompoundObject!");
   PRBool check = CheckReferences(aObject);
   NS_ENSURE_TRUE(check, NS_ERROR_FAILURE);
   return mBinaryStream->WriteObject(aObject, aIsStrongRef);
 }
 
 nsresult
 StartupCacheDebugOutputStream::WriteSingleRefObject(nsISupports* aObject)
 {
-  nsresult rv;
   nsCOMPtr<nsISupports> rootObject(do_QueryInterface(aObject));
   
   NS_ASSERTION(rootObject.get() == aObject,
                "bad call to WriteSingleRefObject -- call WriteCompoundObject!");
   PRBool check = CheckReferences(aObject);
   NS_ENSURE_TRUE(check, NS_ERROR_FAILURE);
   return mBinaryStream->WriteSingleRefObject(aObject);
 }
 
 nsresult
 StartupCacheDebugOutputStream::WriteCompoundObject(nsISupports* aObject,
                                                 const nsIID& aIID,
                                                 PRBool aIsStrongRef)
 {
-  nsresult rv;
   nsCOMPtr<nsISupports> rootObject(do_QueryInterface(aObject));
   
   nsCOMPtr<nsISupports> roundtrip;
   rootObject->QueryInterface(aIID, getter_AddRefs(roundtrip));
   NS_ASSERTION(roundtrip.get() == aObject,
                "bad aggregation or multiple inheritance detected by call to "
                "WriteCompoundObject!");