summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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(