From 708a6196930a1267e577805aed380e3715eaae10 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Fri, 7 Jun 2024 18:50:43 +0530 Subject: chore(ext/node): remove dead op (#24131) --- ext/node/ops/http2.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'ext/node/ops') 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 @@ -356,22 +356,6 @@ pub async fn op_http2_client_send_data( Ok(()) } -#[op2(async)] -pub async fn op_http2_client_end_stream( - state: Rc>, - #[smi] stream_rid: ResourceId, -) -> Result<(), AnyError> { - let resource = state - .borrow() - .resource_table - .get::(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>, -- cgit v1.2.3