summaryrefslogtreecommitdiff
path: root/cli/tsc.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-26 18:16:33 +0200
committerGitHub <noreply@github.com>2020-09-26 18:16:33 +0200
commitf64a44810e1fc732cd5a0aecec541c6c8a289806 (patch)
tree396a215613effcb60d19eeeec9e016aa12aff5eb /cli/tsc.rs
parent04836dc700a8e22fdb604f0640cb72be5e0194c9 (diff)
refactor: combine MainWorker::new and MainWorker::create (#7693)
* combine MainWorker::new and MainWorker::create * remove compiler_starts fields * make op_state types explicit for readability
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r--cli/tsc.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs
index 61d877e2d..245247f13 100644
--- a/cli/tsc.rs
+++ b/cli/tsc.rs
@@ -44,7 +44,6 @@ use std::ops::Deref;
use std::path::Path;
use std::path::PathBuf;
use std::str;
-use std::sync::atomic::Ordering;
use std::sync::Arc;
use std::sync::Mutex;
use swc_common::comments::Comment;
@@ -959,11 +958,6 @@ fn execute_in_tsc(
global_state: Arc<GlobalState>,
req: String,
) -> Result<String, AnyError> {
- // TODO(bartlomieju): this is only used in testing, I'm not sure it's
- // worth keeping around
- // Count how many times we start the compiler worker.
- global_state.compiler_starts.fetch_add(1, Ordering::SeqCst);
-
let mut js_runtime = JsRuntime::new(RuntimeOptions {
startup_snapshot: Some(js::compiler_isolate_init()),
..Default::default()