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]