From 2167a52d693e79c661f91d29164f59111f3bc3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 9 Oct 2023 02:08:10 +0200 Subject: refactor: remove TimersPermissions::check_unstable (#20831) This is dead code that was not used in any way. Ref https://github.com/denoland/deno/pull/20797 --- runtime/build.rs | 8 -------- runtime/permissions/mod.rs | 6 ------ 2 files changed, 14 deletions(-) (limited to 'runtime') diff --git a/runtime/build.rs b/runtime/build.rs index 6684afe09..dec687b6e 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -55,14 +55,6 @@ mod startup_snapshot { fn allow_hrtime(&mut self) -> bool { unreachable!("snapshotting!") } - - fn check_unstable( - &self, - _state: &deno_core::OpState, - _api_name: &'static str, - ) { - unreachable!("snapshotting!") - } } impl deno_ffi::FfiPermissions for Permissions { diff --git a/runtime/permissions/mod.rs b/runtime/permissions/mod.rs index 77f44b813..34d7f0a1b 100644 --- a/runtime/permissions/mod.rs +++ b/runtime/permissions/mod.rs @@ -15,7 +15,6 @@ use deno_core::serde_json; use deno_core::url; use deno_core::url::Url; use deno_core::ModuleSpecifier; -use deno_core::OpState; use log; use once_cell::sync::Lazy; use std::borrow::Cow; @@ -1434,11 +1433,6 @@ impl deno_web::TimersPermission for PermissionsContainer { fn allow_hrtime(&mut self) -> bool { self.0.lock().hrtime.check().is_ok() } - - #[inline(always)] - fn check_unstable(&self, state: &OpState, api_name: &'static str) { - crate::ops::check_unstable(state, api_name); - } } impl deno_websocket::WebSocketPermissions for PermissionsContainer { -- cgit v1.2.3