From 0049d4e50c9dd945f25f69b08b08fbf492001f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 4 Nov 2019 16:38:52 +0100 Subject: Refactor Worker and ThreadSafeState (#3242) * Split ThreadSafeState into State and GlobalState. State is a "local" state belonging to "Worker" while "GlobalState" is state shared by whole program. * Update "Worker" and ops to use "GlobalState" where applicable * Move and refactor "WorkerChannels" resource --- cli/compilers/js.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/compilers/js.rs') diff --git a/cli/compilers/js.rs b/cli/compilers/js.rs index 56c9b672e..af79690d6 100644 --- a/cli/compilers/js.rs +++ b/cli/compilers/js.rs @@ -2,7 +2,6 @@ use crate::compilers::CompiledModule; use crate::compilers::CompiledModuleFuture; use crate::file_fetcher::SourceFile; -use crate::state::ThreadSafeState; use std::str; pub struct JsCompiler {} @@ -10,7 +9,6 @@ pub struct JsCompiler {} impl JsCompiler { pub fn compile_async( self: &Self, - _state: ThreadSafeState, source_file: &SourceFile, ) -> Box { let module = CompiledModule { -- cgit v1.2.3