diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-08 23:35:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 23:35:36 +0100 |
commit | a269dffe17c644a182444030f9d756d2b1859a54 (patch) | |
tree | 64ed3ad2ef9d433831638a81531bd9957cac9c7d | |
parent | 6743383d2e89939ae9c12d8de027f05ae4d37518 (diff) |
chore: remove dead code (#8298)
-rw-r--r-- | cli/global_timer.rs | 1 | ||||
-rw-r--r-- | cli/main.rs | 1 | ||||
-rw-r--r-- | cli/ops/runtime.rs | 2 | ||||
-rw-r--r-- | cli/rt/99_main.js | 3 | ||||
-rw-r--r-- | cli/tests/subdir/test_worker_basic.js | 1 |
5 files changed, 1 insertions, 7 deletions
diff --git a/cli/global_timer.rs b/cli/global_timer.rs deleted file mode 100644 index 6fad563a2..000000000 --- a/cli/global_timer.rs +++ /dev/null @@ -1 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. diff --git a/cli/main.rs b/cli/main.rs index 9e67813f7..9404a47b2 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -23,7 +23,6 @@ mod flags_allow_net; mod fmt; mod fmt_errors; mod fs; -mod global_timer; mod http_cache; mod http_util; mod import_map; diff --git a/cli/ops/runtime.rs b/cli/ops/runtime.rs index 3d7350361..e29cf9f85 100644 --- a/cli/ops/runtime.rs +++ b/cli/ops/runtime.rs @@ -32,9 +32,7 @@ fn op_start( let gs = &super::program_state(state); Ok(json!({ - // TODO(bartlomieju): `cwd` field is not used in JS, remove? "args": gs.flags.argv.clone(), - "cwd": &env::current_dir().unwrap(), "debugFlag": gs.flags.log_level.map_or(false, |l| l == log::Level::Debug), "denoVersion": version::DENO, "noColor": !colors::use_color(), diff --git a/cli/rt/99_main.js b/cli/rt/99_main.js index b29d1a4f2..68572f79a 100644 --- a/cli/rt/99_main.js +++ b/cli/rt/99_main.js @@ -298,7 +298,7 @@ delete Object.prototype.__proto__; } }); - const { args, cwd, noColor, pid, ppid, unstableFlag } = runtimeStart(); + const { args, noColor, pid, ppid, unstableFlag } = runtimeStart(); registerErrors(); @@ -330,7 +330,6 @@ delete Object.prototype.__proto__; Object.freeze(globalThis.Deno.core.sharedQueue); signals.setSignals(); - util.log("cwd", cwd); util.log("args", args); } diff --git a/cli/tests/subdir/test_worker_basic.js b/cli/tests/subdir/test_worker_basic.js index aea360872..b960128b4 100644 --- a/cli/tests/subdir/test_worker_basic.js +++ b/cli/tests/subdir/test_worker_basic.js @@ -1,6 +1,5 @@ console.log("hello from test_worker_basic.js"); -// TODO(bartlomieju): add test for throwing in web worker if (self.name !== "jsWorker") { throw Error(`Bad worker name: ${self.name}, expected jsWorker`); } |