From ef1294e4e5beb68676ba64a6c3a44ff0a277e68a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 22 Aug 2024 14:54:03 -0400 Subject: [PATCH] refactor: remove unused AllowAllNodePermissions (#25159) --- ext/node/lib.rs | 33 --------------------------------- 1 file changed, 33 deletions(-) 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(