summaryrefslogtreecommitdiff
path: root/ext/net/01_net.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/01_net.js')
-rw-r--r--ext/net/01_net.js18
1 files changed, 1 insertions, 17 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js
index b636ec67a..5b894947e 100644
--- a/ext/net/01_net.js
+++ b/ext/net/01_net.js
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { core, internals, primordials } from "ext:core/mod.js";
+import { core, primordials } from "ext:core/mod.js";
const {
BadResourcePrototype,
InterruptedPrototype,
@@ -237,13 +237,6 @@ class Listener {
#promise = null;
constructor(rid, addr) {
- if (internals.future) {
- ObjectDefineProperty(this, "rid", {
- __proto__: null,
- enumerable: false,
- value: undefined,
- });
- }
ObjectDefineProperty(this, internalRidSymbol, {
__proto__: null,
enumerable: false,
@@ -253,15 +246,6 @@ class Listener {
this.#addr = addr;
}
- get rid() {
- internals.warnOnDeprecatedApi(
- "Deno.Listener.rid",
- new Error().stack,
- "Use `Deno.Listener` instance methods instead.",
- );
- return this.#rid;
- }
-
get addr() {
return this.#addr;
}