Skip to content

Commit 9d5a2b6

Browse files
committed
quic: remove obsolete setOutbound()
1 parent 38a5f10 commit 9d5a2b6

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
@@ -2133,25 +2133,6 @@ class QuicStream {
21332133
this[kFinishClose](error); // A no-op, unless destroy() failed
21342134
}
21352135

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

0 commit comments

Comments
 (0)