From ced541b13909f733bb8ae4fa0f31270f3b46d3ff Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Thu, 18 Apr 2024 14:29:19 +0000 Subject: [PATCH] Bug 1892217 - Remove Components.utils.getDOMClassInfo. r=mccr8 Differential Revision: https://phabricator.services.mozilla.com/D207855 --- js/xpconnect/idl/xpccomponents.idl | 6 ------ js/xpconnect/src/XPCComponents.cpp | 7 ------- tools/@types/lib.gecko.xpcom.d.ts | 1 - 3 files changed, 14 deletions(-) diff --git a/js/xpconnect/idl/xpccomponents.idl b/js/xpconnect/idl/xpccomponents.idl index 2ed55b6b8063..0146f407b55a 100644 --- a/js/xpconnect/idl/xpccomponents.idl +++ b/js/xpconnect/idl/xpccomponents.idl @@ -682,12 +682,6 @@ interface nsIXPCComponents_Utils : nsISupports [implicit_jscontext] string getClassName(in jsval aObj, in boolean aUnwrap); - /** - * Get a DOM classinfo for the given classname. Only some class - * names are supported. - */ - nsIClassInfo getDOMClassInfo(in AString aClassName); - /** * Gets the incument global for the execution of this function. For internal * and testing use only. diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp index 25feaf851c85..10425e935e77 100644 --- a/js/xpconnect/src/XPCComponents.cpp +++ b/js/xpconnect/src/XPCComponents.cpp @@ -2181,13 +2181,6 @@ nsXPCComponents_Utils::GetClassName(HandleValue aObj, bool aUnwrap, return NS_OK; } -NS_IMETHODIMP -nsXPCComponents_Utils::GetDOMClassInfo(const nsAString& aClassName, - nsIClassInfo** aClassInfo) { - *aClassInfo = nullptr; - return NS_ERROR_NOT_AVAILABLE; -} - NS_IMETHODIMP nsXPCComponents_Utils::GetIncumbentGlobal(HandleValue aCallback, JSContext* aCx, MutableHandleValue aOut) { diff --git a/tools/@types/lib.gecko.xpcom.d.ts b/tools/@types/lib.gecko.xpcom.d.ts index e3b4eb2fad9d..891093525a8e 100644 --- a/tools/@types/lib.gecko.xpcom.d.ts +++ b/tools/@types/lib.gecko.xpcom.d.ts @@ -14748,7 +14748,6 @@ interface nsIXPCComponents_Utils extends nsISupports { waiveXrays(aVal: any): any; unwaiveXrays(aVal: any): any; getClassName(aObj: any, aUnwrap: boolean): string; - getDOMClassInfo(aClassName: string): nsIClassInfo; getIncumbentGlobal(callback?: any): any; getDebugName(obj: any): string; getWatchdogTimestamp(aCategory: string): PRTime;