From 2c6c2d5c595ff0b0a88566547b97d3bfb104f8c4 Mon Sep 17 00:00:00 2001 From: Efe Karasakal Date: Sat, 10 Oct 2026 19:22:03 +0200 Subject: [PATCH] quic: remove obsolete setOutbound() Signed-off-by: Efe Karasakal --- lib/internal/quic/quic.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/internal/quic/quic.js b/lib/internal/quic/quic.js index 633e1f4e4de..1ca8ee2b27f 100644 --- a/lib/internal/quic/quic.js +++ b/lib/internal/quic/quic.js @@ -2133,25 +2133,6 @@ class QuicStream { this[kFinishClose](error); // A no-op, unless destroy() failed } - /** - * Sets the outbound data source for the stream. This can only be called - * once and must be called before any data will be sent. The body can be - * an ArrayBuffer, a TypedArray or DataView, or a Blob. If the stream - * is destroyed or already has an outbound data source, an error will - * be thrown. - * @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|Blob} outbound - */ - setOutbound(outbound) { - assertIsQuicStream(this); - if (this.destroyed) { - throw new ERR_INVALID_STATE('Stream is destroyed'); - } - if (this.#inner.state.hasOutbound) { - throw new ERR_INVALID_STATE('Stream already has an outbound data source'); - } - this.#handle.attachSource(validateBody(outbound)); - } - /** * @param {object} headers * @param {SendHeadersOptions} [options]