diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-12 22:27:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 12:27:16 +0000 |
commit | 9e8f84214f88ae725f9a028f615b19546b9d789f (patch) | |
tree | 5a1ef949e6fd541ecc5bcf16e3bc61fbd5b6b6e7 /ext/fs | |
parent | b0265eaf8f1d42ec983c2fef0d78435239442ddc (diff) |
refactor: cleanup unstable checks for WebGPU, FFI and FS APIs (#25586)
Continuation of work in #25488.
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'ext/fs')
-rw-r--r-- | ext/fs/lib.rs | 10 | ||||
-rw-r--r-- | ext/fs/ops.rs | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs index f4815fd29..a6f273323 100644 --- a/ext/fs/lib.rs +++ b/ext/fs/lib.rs @@ -21,7 +21,6 @@ pub use crate::sync::MaybeSync; use crate::ops::*; use deno_core::error::AnyError; -use deno_core::OpState; use deno_io::fs::FsError; use std::borrow::Cow; use std::path::Path; @@ -167,15 +166,6 @@ impl FsPermissions for deno_permissions::PermissionsContainer { pub const UNSTABLE_FEATURE_NAME: &str = "fs"; -/// Helper for checking unstable features. Used for sync ops. -fn check_unstable(state: &OpState, api_name: &str) { - // TODO(bartlomieju): replace with `state.feature_checker.check_or_exit` - // once we phase out `check_or_exit_with_legacy_fallback` - state - .feature_checker - .check_or_exit_with_legacy_fallback(UNSTABLE_FEATURE_NAME, api_name); -} - deno_core::extension!(deno_fs, deps = [ deno_web ], parameters = [P: FsPermissions], diff --git a/ext/fs/ops.rs b/ext/fs/ops.rs index 8af2f0045..f25cd944d 100644 --- a/ext/fs/ops.rs +++ b/ext/fs/ops.rs @@ -26,7 +26,6 @@ use rand::thread_rng; use rand::Rng; use serde::Serialize; -use crate::check_unstable; use crate::interface::AccessCheckFn; use crate::interface::FileSystemRc; use crate::interface::FsDirEntry; @@ -121,7 +120,6 @@ pub fn op_fs_umask( ) -> Result<u32, AnyError> where { - check_unstable(state, "Deno.umask"); state.borrow::<FileSystemRc>().umask(mask).context("umask") } |