diff --git a/ext/node/lib.rs b/ext/node/lib.rs index 56eb292aec..39b380b99b 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -66,39 +66,6 @@ pub trait NodePermissions { ) -> Result<(), AnyError>; } -pub struct AllowAllNodePermissions; - -impl NodePermissions for AllowAllNodePermissions { - fn check_net_url( - &mut self, - _url: &Url, - _api_name: &str, - ) -> Result<(), AnyError> { - Ok(()) - } - fn check_read_with_api_name( - &mut self, - _path: &Path, - _api_name: Option<&str>, - ) -> Result<(), AnyError> { - Ok(()) - } - fn check_write_with_api_name( - &mut self, - _path: &Path, - _api_name: Option<&str>, - ) -> Result<(), AnyError> { - Ok(()) - } - fn check_sys( - &mut self, - _kind: &str, - _api_name: &str, - ) -> Result<(), AnyError> { - Ok(()) - } -} - impl NodePermissions for deno_permissions::PermissionsContainer { #[inline(always)] fn check_net_url(