From 708a6196930a1267e577805aed380e3715eaae10 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Fri, 7 Jun 2024 18:50:43 +0530 Subject: [PATCH] chore(ext/node): remove dead op (#24131) --- ext/node/lib.rs | 1 - ext/node/ops/http2.rs | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/ext/node/lib.rs b/ext/node/lib.rs index a15125f603..36c13f8a56 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -340,7 +340,6 @@ deno_core::extension!(deno_node, ops::http2::op_http2_client_get_response, ops::http2::op_http2_client_get_response_body_chunk, ops::http2::op_http2_client_send_data, - ops::http2::op_http2_client_end_stream, ops::http2::op_http2_client_reset_stream, ops::http2::op_http2_client_send_trailers, ops::http2::op_http2_client_get_response_trailers, diff --git a/ext/node/ops/http2.rs b/ext/node/ops/http2.rs index d51da3b43f..e206db61bf 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>,