Bug 585412 warning: unused variable allowScripts in nsXBLService::GetBinding
authortimeless@mozdev.org
Tue, 30 Nov 2010 21:27:29 -0800
changeset 58422 80b459f19bfa92231299070b4e33e436b2549d48
parent 58421 6a76acc0925f903838ee2053c447dcd5c1b2a2ec
child 58423 737ff574c7f02e6d3f908fd1408e1169e27ef825
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs585412
milestone2.0b8pre
Bug 585412 warning: unused variable allowScripts in nsXBLService::GetBinding r=neil a=sicking
content/xbl/src/nsXBLService.cpp
--- a/content/xbl/src/nsXBLService.cpp
+++ b/content/xbl/src/nsXBLService.cpp
@@ -874,17 +874,16 @@ nsXBLService::GetBinding(nsIContent* aBo
                                         PR_FALSE, getter_AddRefs(docInfo));
   NS_ENSURE_SUCCESS(rv, rv);
   
   if (!docInfo)
     return NS_ERROR_FAILURE;
 
   // Get our doc info and determine our script access.
   nsCOMPtr<nsIDocument> doc = docInfo->GetDocument();
-  PRBool allowScripts = docInfo->GetScriptAccess();
 
   nsXBLPrototypeBinding* protoBinding = docInfo->GetPrototypeBinding(ref);
 
   NS_ASSERTION(protoBinding, "Unable to locate an XBL binding.");
   if (!protoBinding)
     return NS_ERROR_FAILURE;
 
   NS_ENSURE_TRUE(aDontExtendURIs.AppendElement(protoBinding->BindingURI()),