diff options
author | Satya Rohith <me@satyarohith.com> | 2024-06-07 18:50:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 18:50:43 +0530 |
commit | 708a6196930a1267e577805aed380e3715eaae10 (patch) | |
tree | 2078a6ba1a5735a8431d0591c3409281f6c5dd1b /ext/node/ops/http2.rs | |
parent | 386d5c8310891c5dc9627abbf2374e60bb4e50d2 (diff) |
chore(ext/node): remove dead op (#24131)
Diffstat (limited to 'ext/node/ops/http2.rs')
-rw-r--r-- | ext/node/ops/http2.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/node/ops/http2.rs b/ext/node/ops/http2.rs index d51da3b43..e206db61b 100644 --- a/ext/node/ops/http2.rs +++ b/ext/node/ops/http2.rs @@ -357,22 +357,6 @@ pub async fn op_http2_client_send_data( } #[op2(async)] -pub async fn op_http2_client_end_stream( - state: Rc<RefCell<OpState>>, - #[smi] stream_rid: ResourceId, -) -> Result<(), AnyError> { - let resource = state - .borrow() - .resource_table - .get::<Http2ClientStream>(stream_rid)?; - let mut stream = RcRef::map(&resource, |r| &r.stream).borrow_mut().await; - - // TODO(bartlomieju): handle end of stream - stream.send_data(BufView::empty(), true)?; - Ok(()) -} - -#[op2(async)] pub async fn op_http2_client_reset_stream( state: Rc<RefCell<OpState>>, #[smi] stream_rid: ResourceId, |