mirror of
https://github.com/denoland/deno.git
synced 2025-01-04 21:38:47 -05:00
refactor: remove unused AllowAllNodePermissions (#25159)
This commit is contained in:
parent
641b52bac7
commit
ef1294e4e5
1 changed files with 0 additions and 33 deletions
|
@ -66,39 +66,6 @@ pub trait NodePermissions {
|
||||||
) -> Result<(), AnyError>;
|
) -> 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 {
|
impl NodePermissions for deno_permissions::PermissionsContainer {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn check_net_url(
|
fn check_net_url(
|
||||||
|
|
Loading…
Reference in a new issue