summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-22 14:54:03 -0400
committerGitHub <noreply@github.com>2024-08-22 18:54:03 +0000
commitef1294e4e5beb68676ba64a6c3a44ff0a277e68a (patch)
tree64594850ad8e0b0b6fb953dbca98e4ec8136c255 /ext/node/lib.rs
parent641b52bac740528087e171064c58e3ea40179859 (diff)
refactor: remove unused AllowAllNodePermissions (#25159)
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs33
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(