summaryrefslogtreecommitdiff
path: root/runtime/ops
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-03 19:01:02 +0200
committerGitHub <noreply@github.com>2023-04-03 19:01:02 +0200
commit51d3fb78ad2453e649d01bcc833ecfec1a05d685 (patch)
treea093cd2ad4faf1cb1fc069de8c406aeef69e1b5a /runtime/ops
parent2846bbe0a3de0cc366006f97023ce146112c40c9 (diff)
refactor: remove "ext/flash" (#18578)
With https://github.com/denoland/deno/pull/18568 landed we no longer need "ext/flash". This commit removes "deno_flash" extension completely. This should have some impact on the binary and snapshot size. Closes https://github.com/denoland/deno/issues/17356
Diffstat (limited to 'runtime/ops')
-rw-r--r--runtime/ops/http.rs19
1 files changed, 1 insertions, 18 deletions
diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs
index 3a316d800..767fc3ae0 100644
--- a/runtime/ops/http.rs
+++ b/runtime/ops/http.rs
@@ -29,7 +29,7 @@ use tokio::net::UnixStream;
deno_core::extension!(
deno_http_runtime,
- ops = [op_http_start, op_http_upgrade, op_flash_upgrade_http],
+ ops = [op_http_start, op_http_upgrade],
customizer = |ext: &mut deno_core::ExtensionBuilder| {
ext.force_op_registration();
},
@@ -91,23 +91,6 @@ fn op_http_start(
Err(bad_resource_id())
}
-#[op]
-fn op_flash_upgrade_http(
- state: &mut OpState,
- token: u32,
- server_id: u32,
-) -> Result<deno_core::ResourceId, AnyError> {
- let flash_ctx = state.borrow_mut::<deno_flash::FlashContext>();
- let ctx = flash_ctx.servers.get_mut(&server_id).unwrap();
-
- let tcp_stream = deno_flash::detach_socket(ctx, token)?;
- Ok(
- state
- .resource_table
- .add(TcpStreamResource::new(tcp_stream.into_split())),
- )
-}
-
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct HttpUpgradeResult {