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) --- runtime/ops/process.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'runtime/ops/process.rs') diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index 5712109d0..679deff98 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -17,7 +17,6 @@ use deno_core::OpState; use deno_core::RcRef; use deno_core::Resource; use deno_core::ResourceId; -use deno_core::ZeroCopyBuf; use serde::Deserialize; use serde::Serialize; use std::borrow::Cow; @@ -101,7 +100,7 @@ struct RunInfo { fn op_run( state: &mut OpState, run_args: RunArgs, - _zero_copy: Option, + _: (), ) -> Result { let args = run_args.cmd; state.borrow_mut::().run.check(&args[0])?; @@ -202,7 +201,7 @@ struct RunStatus { async fn op_run_status( state: Rc>, rid: ResourceId, - _zero_copy: Option, + _: (), ) -> Result { let resource = state .borrow_mut() @@ -287,11 +286,7 @@ struct KillArgs { signo: i32, } -fn op_kill( - state: &mut OpState, - args: KillArgs, - _zero_copy: Option, -) -> Result<(), AnyError> { +fn op_kill(state: &mut OpState, args: KillArgs, _: ()) -> Result<(), AnyError> { super::check_unstable(state, "Deno.kill"); state.borrow_mut::().run.check_all()?; -- cgit v1.2.3