Bug 661967: Remove never-read local variable from nsIOService::GetProtocolHandler. r=bz

This commit is contained in:
Daniel Holbert 2011-06-07 10:50:14 -07:00
parent 3a85af8230
commit 13c008cef5

View File

@ -429,7 +429,6 @@ nsIOService::GetProtocolHandler(const char* scheme, nsIProtocolHandler* *result)
return rv;
PRBool externalProtocol = PR_FALSE;
PRBool listedProtocol = PR_TRUE;
nsCOMPtr<nsIPrefBranch2> prefBranch;
GetPrefBranch(getter_AddRefs(prefBranch));
if (prefBranch) {
@ -438,7 +437,6 @@ nsIOService::GetProtocolHandler(const char* scheme, nsIProtocolHandler* *result)
rv = prefBranch->GetBoolPref(externalProtocolPref.get(), &externalProtocol);
if (NS_FAILED(rv)) {
externalProtocol = PR_FALSE;
listedProtocol = PR_FALSE;
}
}