Bug 1129795 - Remove some unnecessary code in docshell/base/. r=mccr8

This commit is contained in:
Birunthan Mohanathas 2015-02-13 21:36:42 +02:00
parent 5776cdf83b
commit 624162386c
3 changed files with 0 additions and 19 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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;