зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1430237 - remove newSimpleNestedURI from nsINetUtil, r=mayhemer
MozReview-Commit-ID: 74RsNo60Kfh --HG-- extra : rebase_source : ba3288d4bf71c5c1643cf19993fa6cbcd8f72e8f
This commit is contained in:
Родитель
a65c7eb6a0
Коммит
da58d0a580
|
@ -83,13 +83,6 @@ interface nsINetUtil : nsISupports
|
|||
*/
|
||||
nsIURI toImmutableURI(in nsIURI aURI);
|
||||
|
||||
/**
|
||||
* Create a simple nested URI using the result of
|
||||
* toImmutableURI on the passed-in aURI which may not be null.
|
||||
* Note: The return URI will not have had its spec set yet.
|
||||
*/
|
||||
nsIURI newSimpleNestedURI(in nsIURI aURI);
|
||||
|
||||
/** Escape every character with its %XX-escaped equivalent */
|
||||
const unsigned long ESCAPE_ALL = 0;
|
||||
|
||||
|
|
|
@ -1574,19 +1574,6 @@ nsIOService::ToImmutableURI(nsIURI* uri, nsIURI** result)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsIOService::NewSimpleNestedURI(nsIURI* aURI, nsIURI** aResult)
|
||||
{
|
||||
NS_ENSURE_ARG(aURI);
|
||||
|
||||
nsCOMPtr<nsIURI> safeURI;
|
||||
nsresult rv = NS_EnsureSafeToReturn(aURI, getter_AddRefs(safeURI));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
NS_IF_ADDREF(*aResult = new nsSimpleNestedURI(safeURI));
|
||||
return *aResult ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsIOService::SetManageOfflineStatus(bool aManage)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче