summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-10-12 22:25:25 +1100
committerGitHub <noreply@github.com>2020-10-12 22:25:25 +1100
commit26639b3bac463768c65f7fc40a1c53317549e1eb (patch)
tree4164b44e0530f6ec2d6316028aca65a04f320751 /cli/worker.rs
parente877b36072039811066726ab1619e7b5142f5680 (diff)
chore(cli): remove dead code (#7941)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs15
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()