diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-05-08 14:37:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 14:37:42 +0200 |
commit | d5f39fd121b8f997dcfb360828f60cee47322ab3 (patch) | |
tree | 4eb4880060a861ac6ddfe27e5f62b8bc756b52b5 /runtime/ops/process.rs | |
parent | 4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff) |
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'runtime/ops/process.rs')
-rw-r--r-- | runtime/ops/process.rs | 11 |
1 files changed, 3 insertions, 8 deletions
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<ZeroCopyBuf>, + _: (), ) -> Result<RunInfo, AnyError> { let args = run_args.cmd; state.borrow_mut::<Permissions>().run.check(&args[0])?; @@ -202,7 +201,7 @@ struct RunStatus { async fn op_run_status( state: Rc<RefCell<OpState>>, rid: ResourceId, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<RunStatus, AnyError> { let resource = state .borrow_mut() @@ -287,11 +286,7 @@ struct KillArgs { signo: i32, } -fn op_kill( - state: &mut OpState, - args: KillArgs, - _zero_copy: Option<ZeroCopyBuf>, -) -> Result<(), AnyError> { +fn op_kill(state: &mut OpState, args: KillArgs, _: ()) -> Result<(), AnyError> { super::check_unstable(state, "Deno.kill"); state.borrow_mut::<Permissions>().run.check_all()?; |