summaryrefslogtreecommitdiff
path: root/ext/ffi/lib.rs
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-12 22:27:16 +1000
committerGitHub <noreply@github.com>2024-09-12 12:27:16 +0000
commit9e8f84214f88ae725f9a028f615b19546b9d789f (patch)
tree5a1ef949e6fd541ecc5bcf16e3bc61fbd5b6b6e7 /ext/ffi/lib.rs
parentb0265eaf8f1d42ec983c2fef0d78435239442ddc (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/ffi/lib.rs')
-rw-r--r--ext/ffi/lib.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs
index 26b06d98f..59d241c5a 100644
--- a/ext/ffi/lib.rs
+++ b/ext/ffi/lib.rs
@@ -1,7 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
use deno_core::error::AnyError;
-use deno_core::OpState;
use std::mem::size_of;
use std::os::raw::c_char;
@@ -41,14 +40,6 @@ const _: () = {
pub const UNSTABLE_FEATURE_NAME: &str = "ffi";
-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)
-}
-
pub trait FfiPermissions {
fn check_partial(&mut self, path: Option<&Path>) -> Result<(), AnyError>;
}