summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/node/lib.rs1
-rw-r--r--ext/node/ops/http2.rs16
2 files changed, 0 insertions, 17 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index a15125f60..36c13f8a5 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 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,