summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-17 09:43:36 +1000
committerGitHub <noreply@github.com>2024-09-16 23:43:36 +0000
commit01b5dfd9ea927d41492fde352cd79f7b972439b9 (patch)
treecd0d6693e0f361cb707c5b75f9fa7d0a7acdb844 /runtime/js/99_main.js
parentb0525edd6fb2fa414407ec73c981051d692d1c26 (diff)
chore: remove `warnOnDeprecatedApi()` (#25673)
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 944a9f4a4..8f53cffc4 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -111,9 +111,6 @@ ObjectDefineProperties(Symbol, {
let windowIsClosing = false;
let globalThis_;
-// TODO(2.0): remove once all deprecated APIs are removed.
-function warnOnDeprecatedApi() {}
-
function windowClose() {
if (!windowIsClosing) {
windowIsClosing = true;
@@ -506,7 +503,7 @@ function removeImportedOps() {
// FIXME(bartlomieju): temporarily add whole `Deno.core` to
// `Deno[Deno.internal]` namespace. It should be removed and only necessary
// methods should be left there.
-ObjectAssign(internals, { core, warnOnDeprecatedApi });
+ObjectAssign(internals, { core });
const internalSymbol = Symbol("Deno.internal");
const finalDenoNs = {
internal: internalSymbol,