diff options
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r-- | runtime/ops/tty.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs index e570754f2..3d721734c 100644 --- a/runtime/ops/tty.rs +++ b/runtime/ops/tty.rs @@ -50,12 +50,7 @@ use winapi::um::wincon; deno_core::extension!( deno_tty, - ops = [ - op_set_raw, - op_is_terminal, - op_console_size, - op_read_line_prompt - ], + ops = [op_set_raw, op_console_size, op_read_line_prompt], state = |state| { #[cfg(unix)] state.put(TtyModeStore::default()); @@ -210,12 +205,6 @@ fn op_set_raw( } #[op2(fast)] -fn op_is_terminal(state: &mut OpState, rid: u32) -> Result<bool, AnyError> { - let handle = state.resource_table.get_handle(rid)?; - Ok(handle.is_terminal()) -} - -#[op2(fast)] fn op_console_size( state: &mut OpState, #[buffer] result: &mut [u32], |