Bug 898232: Remove unused variable 'existingScript' from nsXULPrototypeCache::GetScript(). r=jonco
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 29 Jul 2013 10:21:33 -0700
changeset 140423 6db27e6a073955e872981caf3f0b1554871e1511
parent 140422 268f7f146100cf9ece5af8ccc399e0625c4ac973
child 140424 bf208ba34b9c8ac2544ee0c055e3ce23f9cc2fcc
push id25030
push userryanvm@gmail.com
push dateTue, 30 Jul 2013 17:07:39 +0000
treeherdermozilla-central@129ce98f4cb2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs898232
milestone25.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 898232: Remove unused variable 'existingScript' from nsXULPrototypeCache::GetScript(). r=jonco
content/xul/document/src/nsXULPrototypeCache.cpp
--- a/content/xul/document/src/nsXULPrototypeCache.cpp
+++ b/content/xul/document/src/nsXULPrototypeCache.cpp
@@ -200,17 +200,17 @@ nsXULPrototypeCache::GetScript(nsIURI* a
     return mScriptTable.Get(aURI);
 }
 
 nsresult
 nsXULPrototypeCache::PutScript(nsIURI* aURI,
                                JS::Handle<JSScript*> aScriptObject)
 {
 #ifdef DEBUG
-    if (JSScript* existingScript = mScriptTable.Get(aURI)) {
+    if (mScriptTable.Get(aURI)) {
         nsAutoCString scriptName;
         aURI->GetSpec(scriptName);
         nsAutoCString message("Loaded script ");
         message += scriptName;
         message += " twice (bug 392650)";
         NS_WARNING(message.get());
     }
 #endif