mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1129795 - Remove some unnecessary code in docshell/base/. r=mccr8
This commit is contained in:
parent
5776cdf83b
commit
624162386c
@ -188,9 +188,6 @@ nsresult
|
||||
nsAboutRedirector::Create(nsISupports* aOuter, REFNSIID aIID, void** aResult)
|
||||
{
|
||||
nsAboutRedirector* about = new nsAboutRedirector();
|
||||
if (!about) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
NS_ADDREF(about);
|
||||
nsresult rv = about->QueryInterface(aIID, aResult);
|
||||
NS_RELEASE(about);
|
||||
|
@ -1117,16 +1117,6 @@ nsDefaultURIFixup::IsDomainWhitelisted(const nsAutoCString aAsciiHost,
|
||||
return Preferences::GetBool(pref.get(), false);
|
||||
}
|
||||
|
||||
nsresult
|
||||
NS_NewURIFixup(nsIURIFixup** aURIFixup)
|
||||
{
|
||||
nsDefaultURIFixup* fixup = new nsDefaultURIFixup;
|
||||
if (!fixup) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
return fixup->QueryInterface(NS_GET_IID(nsIURIFixup), (void**)aURIFixup);
|
||||
}
|
||||
|
||||
/* Implementation of nsIURIFixupInfo */
|
||||
NS_IMPL_ISUPPORTS(nsDefaultURIFixupInfo, nsIURIFixupInfo)
|
||||
|
||||
|
@ -690,9 +690,6 @@ SendPing(void* aClosure, nsIContent* aContent, nsIURI* aURI,
|
||||
// channel. The networking subsystem will take care of that for us.
|
||||
nsPingListener* pingListener =
|
||||
new nsPingListener(info->requireSameHost, aContent, loadGroup);
|
||||
if (!pingListener) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIStreamListener> listener(pingListener);
|
||||
|
||||
@ -12772,9 +12769,6 @@ nsDocShell::EnsureTransferableHookData()
|
||||
{
|
||||
if (!mTransferableHookData) {
|
||||
mTransferableHookData = new nsTransferableHookData();
|
||||
if (!mTransferableHookData) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user