summaryrefslogtreecommitdiff
path: root/runtime/ops/tty.rs
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-03-06 15:08:10 -0800
committerGitHub <noreply@github.com>2024-03-06 15:08:10 -0800
commit9df917c0be620055c0d2eb53f76d4f1290d5e9e5 (patch)
tree3252f37bbc91a743e2b265024cc007a1918763ff /runtime/ops/tty.rs
parent6b48aff8fb639a798c8b1a044a3dd7caad433c48 (diff)
chore: upgrade deno_core (#22725)
<!-- Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. 7. Open as a draft PR if your work is still in progress. The CI won't run all steps, but you can add '[ci]' to a commit message to force it to. 8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label. -->
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r--runtime/ops/tty.rs13
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],