Bug 1387791 - Remove [deprecated] Components.reportError. r=bholley

MozReview-Commit-ID: CCqFQid7ZDi

--HG--
extra : rebase_source : bce691e8a83d3a2837fbf28f44f5390aae2c2716
This commit is contained in:
Masatoshi Kimura 2017-08-06 11:04:11 +09:00
parent 06311d2e3a
commit 436186d6f8
2 changed files with 0 additions and 16 deletions

View File

@ -730,7 +730,4 @@ interface nsIXPCComponents : nsIXPCComponentsBase
// A javascript component can set |returnCode| to specify an nsresult to
// be returned without throwing an exception.
attribute jsval returnCode;
/* @deprecated Use Components.utils.reportError instead. */
[deprecated, implicit_jscontext] void reportError(in jsval error);
};

View File

@ -3489,19 +3489,6 @@ nsXPCComponents::SetReturnCode(JSContext* aCx, HandleValue aCode)
return NS_OK;
}
// static
NS_IMETHODIMP nsXPCComponents::ReportError(HandleValue error, JSContext* cx)
{
NS_WARNING("Components.reportError deprecated, use Components.utils.reportError");
nsCOMPtr<nsIXPCComponents_Utils> utils;
nsresult rv = GetUtils(getter_AddRefs(utils));
if (NS_FAILED(rv))
return rv;
return utils->ReportError(error, cx);
}
/**********************************************/
class ComponentsSH : public nsIXPCScriptable