mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1387791 - Remove [deprecated] Components.reportError. r=bholley
MozReview-Commit-ID: CCqFQid7ZDi --HG-- extra : rebase_source : bce691e8a83d3a2837fbf28f44f5390aae2c2716
This commit is contained in:
parent
06311d2e3a
commit
436186d6f8
@ -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);
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user