Bug 1472087 - Remove nsDocShell::CreateLoadInfo; r=nika

We can now just call new nsDocShellLoadInfo instead of worrying about
xpcom fallibility.

MozReview-Commit-ID: 80tHtBji1Vm
This commit is contained in:
Kyle Machulis
2018-06-29 17:27:20 -07:00
parent a14db5d72f
commit dc9be63118
2 changed files with 0 additions and 16 deletions

View File

@@ -1024,16 +1024,6 @@ nsDocShell::LoadURI(nsIURI* aURI,
nullptr); // No nsIRequest
}
NS_IMETHODIMP
nsDocShell::CreateLoadInfo(nsDocShellLoadInfo** aLoadInfo)
{
nsDocShellLoadInfo* loadInfo = new nsDocShellLoadInfo();
RefPtr<nsDocShellLoadInfo> localRef(loadInfo);
localRef.forget(aLoadInfo);
return NS_OK;
}
/*
* Reset state to a new content model within the current document and the
* document viewer. Called by the document before initiating an out of band

View File

@@ -208,12 +208,6 @@ interface nsIDocShell : nsIDocShellTreeItem
void addState(in jsval aData, in DOMString aTitle,
in DOMString aURL, in boolean aReplace);
/**
* Creates a DocShellLoadInfo object that you can manipulate and then pass
* to loadURI.
*/
void createLoadInfo(out nsDocShellLoadInfoPtr loadInfo);
/**
* Reset state to a new content model within the current document and the document
* viewer. Called by the document before initiating an out of band document.write().