diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-10-12 22:25:25 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 22:25:25 +1100 |
commit | 26639b3bac463768c65f7fc40a1c53317549e1eb (patch) | |
tree | 4164b44e0530f6ec2d6316028aca65a04f320751 /cli/worker.rs | |
parent | e877b36072039811066726ab1619e7b5142f5680 (diff) |
chore(cli): remove dead code (#7941)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index b5855e653..8cf175cc5 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -194,21 +194,6 @@ impl Worker { self.js_runtime.mod_evaluate(id) } - /// Loads, instantiates and executes provided source code - /// as module. - pub async fn execute_module_from_code( - &mut self, - module_specifier: &ModuleSpecifier, - code: String, - ) -> Result<(), AnyError> { - let id = self - .js_runtime - .load_module(module_specifier, Some(code)) - .await?; - self.wait_for_inspector_session(); - self.js_runtime.mod_evaluate(id) - } - /// Returns a way to communicate with the Worker from other threads. pub fn thread_safe_handle(&self) -> WorkerHandle { self.external_channels.clone() |