diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-10-09 02:08:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 02:08:10 +0200 |
commit | 2167a52d693e79c661f91d29164f59111f3bc3c9 (patch) | |
tree | ef8cef2fd0d3bc38a011c4d4d699e89d19016a77 /runtime/permissions/mod.rs | |
parent | dfc254cd57683f394f1b5fdca8c75200b2a9969d (diff) |
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
Diffstat (limited to 'runtime/permissions/mod.rs')
-rw-r--r-- | runtime/permissions/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
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 { |