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

Commit

Permalink
Delete the no-longer-used goog.defines for the in-browser transpile…
Browse files Browse the repository at this point in the history
…r, along with all references to them.

RELNOTES: n/a
PiperOrigin-RevId: 465121210
Change-Id: I46c66bce7ecf4fdbadc2af93e1389858091b67f2
  • Loading branch information
shicks authored and copybara-github committed Aug 3, 2022
1 parent e69cdb6 commit 60773f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 33 deletions.
26 changes: 0 additions & 26 deletions closure/goog/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1028,32 +1028,6 @@ goog.ASSUME_ES_MODULES_TRANSPILED =
goog.define('goog.ASSUME_ES_MODULES_TRANSPILED', false);


/**
* @define {string} If a file needs to be transpiled what the output language
* should be. By default this is the highest language level this file detects
* the current environment supports. Generally this flag should not be set, but
* it could be useful to override. Example: If the current environment supports
* ES6 then by default ES7+ files will be transpiled to ES6, unless this is
* overridden.
*
* Valid values include: es3, es5, es6, es7, and es8. Anything not recognized
* is treated as es3.
*
* Note that setting this value does not force transpilation. Just if
* transpilation occurs this will be the output. So this is most useful when
* goog.TRANSPILE is set to 'always' and then forcing the language level to be
* something lower than what the environment detects.
*/
goog.TRANSPILE_TO_LANGUAGE = goog.define('goog.TRANSPILE_TO_LANGUAGE', '');


/**
* @define {string} Path to the transpiler. Executing the script at this
* path (relative to base.js) should define a function $jscomp.transpile.
*/
goog.TRANSPILER = goog.define('goog.TRANSPILER', 'transpile.js');


/**
* @define {string} Trusted Types policy name. If non-empty then Closure will
* use Trusted Types.
Expand Down
3 changes: 0 additions & 3 deletions closure/goog/goog.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,8 @@ export const module = {
// goog.module.declareLegacyNamespace - ES6 modules cannot declare namespaces.
// goog.addDependency - meant to only be used by dependency files.
// goog.DEPENDENCIES_ENABLED - constant only used in base.
// goog.TRANSPILE - define only used in base.
// goog.TRANSPILER - define only used in base.
// goog.loadModule - should not be called by any ES6 module; exists for
// generated bundles.
// goog.LOAD_MODULE_USING_EVAL - define only used in base.
// goog.SEAL_MODULE_EXPORTS - define only used in base.
// goog.DebugLoader - used rarely, only outside of compiled code.
// goog.Transpiler - used rarely, only outside of compiled code.
6 changes: 4 additions & 2 deletions closure/goog/net/crossdomainrpc_test_response.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
-->
<title>crossdomainrpc test response</title>
<body>

<!-- MOE:insert <script type="text/javascript" src="../base.js"></script> -->
<!-- MOE:begin_strip -->
<script src="../../../../javascript/closure/base.js"></script>
<!-- MOE:end_strip_and_replace
<script type="text/javascript" src="../base.js"></script> -->
<script type="text/javascript">
goog.require('goog.Uri.QueryData');
goog.require('goog.dom');
Expand Down
6 changes: 4 additions & 2 deletions closure/goog/net/xpc/testdata/inner_peer.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

<head>
<title>XPC test inner frame</title>

<!-- MOE:insert <script src="../../../base.js" type="text/javascript"></script> -->
<!-- MOE:begin_strip -->
<script src="../../../../../../javascript/closure/base.js"></script>
<!-- MOE:end_strip_and_replace
<script src="../../../base.js" type="text/javascript"></script> -->
<script type="text/javascript">
goog.require('goog.dom');
goog.require('goog.events');
Expand Down

0 comments on commit 60773f1

Please sign in to comment.