Skip to content

Commit

Permalink
refactor: remove unused AllowAllNodePermissions (denoland#25159)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Aug 22, 2024
1 parent 641b52b commit ef1294e
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions ext/node/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ef1294e

Please sign in to comment.