mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore(ext/node): remove dead op (#24131)
This commit is contained in:
parent
53c535d2b6
commit
5a7241694d
2 changed files with 0 additions and 17 deletions
|
@ -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,
|
||||
|
|
|
@ -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>>,
|
||||
|
|
Loading…
Reference in a new issue