Skip to content

Commit

Permalink
Remove deprecated goog.getLocale.
Browse files Browse the repository at this point in the history
RELNOTES: Remove deprecated goog.getLocale function. goog.LOCALE should be set as a Closure Define instead.
PiperOrigin-RevId: 505775605
Change-Id: Ie34f0d2d0c9c3a2a559d3b68ae082137a96a3666
  • Loading branch information
12wrigja authored and Copybara-Service committed Jan 30, 2023
1 parent 35dc68a commit 9c4766f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions closure/goog/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,22 +256,6 @@ goog.DEBUG = goog.define('goog.DEBUG', true);
goog.LOCALE = goog.define('goog.LOCALE', 'en'); // default to en


/**
* Same as `goog.LOCALE`, which should be used instead.
*
* Using this method just makes it harder for closure-compiler to optimize
* your locale-specific code, since it has to take the extra step of inlining
* this function to discover and remove code that is not used for the target
* locale.
*
* @return {string}
* @deprecated use `goog.LOCALE`
*/
goog.getLocale = function() {
return goog.LOCALE;
};


/**
* @define {boolean} Whether this code is running on trusted sites.
*
Expand Down

0 comments on commit 9c4766f

Please sign in to comment.