summaryrefslogtreecommitdiff
path: root/ext/timers/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/timers/lib.rs')
-rw-r--r--ext/timers/lib.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/timers/lib.rs b/ext/timers/lib.rs
index 2b9948d1f..384627c57 100644
--- a/ext/timers/lib.rs
+++ b/ext/timers/lib.rs
@@ -31,15 +31,6 @@ pub trait TimersPermission {
fn check_unstable(&self, state: &OpState, api_name: &'static str);
}
-pub struct NoTimersPermission;
-
-impl TimersPermission for NoTimersPermission {
- fn allow_hrtime(&mut self) -> bool {
- false
- }
- fn check_unstable(&self, _: &OpState, _: &'static str) {}
-}
-
pub fn init<P: TimersPermission + 'static>() -> Extension {
Extension::builder()
.js(include_js_files!(