From d5f39fd121b8f997dcfb360828f60cee47322ab3 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sat, 8 May 2021 14:37:42 +0200 Subject: cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530) --- extensions/timers/lib.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'extensions/timers/lib.rs') diff --git a/extensions/timers/lib.rs b/extensions/timers/lib.rs index 5a9b28bb6..e9580c4b5 100644 --- a/extensions/timers/lib.rs +++ b/extensions/timers/lib.rs @@ -18,7 +18,6 @@ use deno_core::op_async; use deno_core::op_sync; use deno_core::Extension; use deno_core::OpState; -use deno_core::ZeroCopyBuf; use std::cell::RefCell; use std::future::Future; use std::pin::Pin; @@ -104,7 +103,7 @@ impl GlobalTimer { pub fn op_global_timer_stop( state: &mut OpState, _args: (), - _zero_copy: Option, + _: (), ) -> Result<(), AnyError> { let global_timer = state.borrow_mut::(); global_timer.cancel(); @@ -122,7 +121,7 @@ pub fn op_global_timer_stop( pub fn op_global_timer_start( state: &mut OpState, timeout: u64, - _zero_copy: Option, + _: (), ) -> Result<(), AnyError> { let deadline = Instant::now() + Duration::from_millis(timeout); let global_timer = state.borrow_mut::(); @@ -133,7 +132,7 @@ pub fn op_global_timer_start( pub async fn op_global_timer( state: Rc>, _args: (), - _zero_copy: Option, + _: (), ) -> Result<(), AnyError> { let maybe_timer_fut = { let mut s = state.borrow_mut(); @@ -154,7 +153,7 @@ pub async fn op_global_timer( pub fn op_now( state: &mut OpState, _argument: (), - _zero_copy: Option, + _: (), ) -> Result where TP: TimersPermission + 'static, @@ -180,7 +179,7 @@ where pub fn op_sleep_sync( state: &mut OpState, millis: u64, - _zero_copy: Option, + _: (), ) -> Result<(), AnyError> where TP: TimersPermission + 'static, -- cgit v1.2.3