diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-22 14:54:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 18:54:03 +0000 |
commit | ef1294e4e5beb68676ba64a6c3a44ff0a277e68a (patch) | |
tree | 64594850ad8e0b0b6fb953dbca98e4ec8136c255 /ext/node | |
parent | 641b52bac740528087e171064c58e3ea40179859 (diff) |
refactor: remove unused AllowAllNodePermissions (#25159)
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/lib.rs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index 56eb292ae..39b380b99 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( |