1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

chore(ext/node): remove dead op (#24131)

This commit is contained in:
Satya Rohith 2024-06-07 18:50:43 +05:30 committed by GitHub
parent 386d5c8310
commit 708a619693
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 17 deletions

View file

@ -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,

View file

@ -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<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>>,