Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 9c4766f

Browse files
12wrigjacopybara-github
authored andcommitted
Remove deprecated goog.getLocale.
RELNOTES: Remove deprecated goog.getLocale function. goog.LOCALE should be set as a Closure Define instead. PiperOrigin-RevId: 505775605 Change-Id: Ie34f0d2d0c9c3a2a559d3b68ae082137a96a3666
1 parent 35dc68a commit 9c4766f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

closure/goog/base.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -256,22 +256,6 @@ goog.DEBUG = goog.define('goog.DEBUG', true);
256256
goog.LOCALE = goog.define('goog.LOCALE', 'en'); // default to en
257257

258258

259-
/**
260-
* Same as `goog.LOCALE`, which should be used instead.
261-
*
262-
* Using this method just makes it harder for closure-compiler to optimize
263-
* your locale-specific code, since it has to take the extra step of inlining
264-
* this function to discover and remove code that is not used for the target
265-
* locale.
266-
*
267-
* @return {string}
268-
* @deprecated use `goog.LOCALE`
269-
*/
270-
goog.getLocale = function() {
271-
return goog.LOCALE;
272-
};
273-
274-
275259
/**
276260
* @define {boolean} Whether this code is running on trusted sites.
277261
*

0 commit comments

Comments
 (0)