summaryrefslogtreecommitdiff
path: root/extensions/timers/lib.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-05-08 14:37:42 +0200
committerGitHub <noreply@github.com>2021-05-08 14:37:42 +0200
commitd5f39fd121b8f997dcfb360828f60cee47322ab3 (patch)
tree4eb4880060a861ac6ddfe27e5f62b8bc756b52b5 /extensions/timers/lib.rs
parent4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff)
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'extensions/timers/lib.rs')
-rw-r--r--extensions/timers/lib.rs11
1 files changed, 5 insertions, 6 deletions
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<ZeroCopyBuf>,
+ _: (),
) -> Result<(), AnyError> {
let global_timer = state.borrow_mut::<GlobalTimer>();
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<ZeroCopyBuf>,
+ _: (),
) -> Result<(), AnyError> {
let deadline = Instant::now() + Duration::from_millis(timeout);
let global_timer = state.borrow_mut::<GlobalTimer>();
@@ -133,7 +132,7 @@ pub fn op_global_timer_start(
pub async fn op_global_timer(
state: Rc<RefCell<OpState>>,
_args: (),
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> 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<TP>(
state: &mut OpState,
_argument: (),
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<f64, AnyError>
where
TP: TimersPermission + 'static,
@@ -180,7 +179,7 @@ where
pub fn op_sleep_sync<TP>(
state: &mut OpState,
millis: u64,
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<(), AnyError>
where
TP: TimersPermission + 'static,