GeezerVison is showing github.com — quic: remove obsolete setOutbound() · nodejs/node@066e03d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/quic/quic.js -19Lines changed: 0 additions & 19 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2139,25 +2139,6 @@ class QuicStream { |
2139 | 2139 | this[kFinishClose](error); // A no-op, unless destroy() failed |
2140 | 2140 | } |
2141 | 2141 |
|
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 | | - |
2161 | 2142 | /** |
2162 | 2143 | * @param {object} headers |
2163 | 2144 | * @param {SendHeadersOptions} [options] |
|