summaryrefslogtreecommitdiff
path: root/ext/fs/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fs/lib.rs')
-rw-r--r--ext/fs/lib.rs10
1 files changed, 0 insertions, 10 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],