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/tty.rs | |
parent | 4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff) |
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r-- | runtime/ops/tty.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs index c8ed54db0..bc45c9375 100644 --- a/runtime/ops/tty.rs +++ b/runtime/ops/tty.rs @@ -10,7 +10,6 @@ use deno_core::Extension; use deno_core::OpState; use deno_core::RcRef; use deno_core::ResourceId; -use deno_core::ZeroCopyBuf; use serde::Deserialize; use serde::Serialize; use std::io::Error; @@ -71,7 +70,7 @@ pub struct SetRawArgs { fn op_set_raw( state: &mut OpState, args: SetRawArgs, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { super::check_unstable(state, "Deno.setRaw"); @@ -221,7 +220,7 @@ fn op_set_raw( fn op_isatty( state: &mut OpState, rid: ResourceId, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<bool, AnyError> { let isatty: bool = StdFileResource::with(state, rid, move |r| match r { Ok(std_file) => { @@ -255,7 +254,7 @@ struct ConsoleSize { fn op_console_size( state: &mut OpState, rid: ResourceId, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<ConsoleSize, AnyError> { super::check_unstable(state, "Deno.consoleSize"); |