Skip to content

Commit 53f037e

Browse files
authored
quic: remove obsolete setOutbound()
Signed-off-by: Efe Karasakal <hi@efe.dev> PR-URL: #66646 Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
1 parent 727e0ca commit 53f037e

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎lib/internal/quic/quic.js‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,25 +2139,6 @@ class QuicStream {
21392139
this[kFinishClose](error); // A no-op, unless destroy() failed
21402140
}
21412141

2142-
/**
2143-
* Sets the outbound data source for the stream. This can only be called
2144-
* once and must be called before any data will be sent. The body can be
2145-
* an ArrayBuffer, a TypedArray or DataView, or a Blob. If the stream
2146-
* is destroyed or already has an outbound data source, an error will
2147-
* be thrown.
2148-
* @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|Blob} outbound
2149-
*/
2150-
setOutbound(outbound) {
2151-
assertIsQuicStream(this);
2152-
if (this.destroyed) {
2153-
throw new ERR_INVALID_STATE('Stream is destroyed');
2154-
}
2155-
if (this.#inner.state.hasOutbound) {
2156-
throw new ERR_INVALID_STATE('Stream already has an outbound data source');
2157-
}
2158-
this.#handle.attachSource(validateBody(outbound));
2159-
}
2160-
21612142
/**
21622143
* @param {object} headers
21632144
* @param {SendHeadersOptions} [options]

0 commit comments

Comments
 (0)