Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit f9e034e

Browse files
committed
Bug 1875216 - part 1: Remove XPCOMUtils.defineLazyGetter r=arai,Standard8,robwu
Differential Revision: https://phabricator.services.mozilla.com/D202126
1 parent eeee947 commit f9e034e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

js/xpconnect/loader/XPCOMUtils.sys.mjs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,6 @@ function redefine(object, prop, value) {
3838
* @class
3939
*/
4040
export var XPCOMUtils = {
41-
/**
42-
* DEPRECATED!
43-
*
44-
* Use ChromeUtils.defineLazyGetter instead.
45-
*
46-
* Defines a getter on a specified object that will be created upon first use.
47-
*
48-
* @param {object} aObject
49-
* The object to define the lazy getter on.
50-
* @param {string} aName
51-
* The name of the getter to define on aObject.
52-
* @param {Function} aLambda
53-
* A function that returns what the getter should return. This will
54-
* only ever be called once.
55-
*/
56-
defineLazyGetter(aObject, aName, aLambda) {
57-
console.warn(
58-
"Please use ChromeUtils.defineLazyGetter instead of XPCOMUtils.defineLazyGetter. XPCOMUtils.defineLazyGetter will be removed soon."
59-
);
60-
ChromeUtils.defineLazyGetter(aObject, aName, aLambda);
61-
},
62-
6341
/**
6442
* Defines a getter on a specified object for a script. The script will not
6543
* be loaded until first use.

0 commit comments

Comments
 (0)