summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-09-24 18:35:35 -0400
committerGitHub <noreply@github.com>2021-09-25 00:35:35 +0200
commit683a38e47c47609d28bc6964f4b082885e477bf3 (patch)
tree42f513fd5c5a67506e59a62a32a5afa9fd49b70f /core/runtime.rs
parentd0e14ae82cf05b1d854df4da37e2152cd09664a4 (diff)
refactor: Remove unused code (#12210)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index 9071463b5..ddbfea0c1 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -1424,22 +1424,6 @@ impl JsRuntime {
Ok(root_id)
}
- /// Asynchronously load specified module and all of its dependencies
- ///
- /// User must call `JsRuntime::mod_evaluate` with returned `ModuleId`
- /// manually after load is finished.
- #[deprecated(
- since = "0.100.0",
- note = "This method had a bug, marking multiple modules loaded as \"main\". Use `load_main_module` or `load_side_module` instead."
- )]
- pub async fn load_module(
- &mut self,
- specifier: &ModuleSpecifier,
- code: Option<String>,
- ) -> Result<ModuleId, AnyError> {
- self.load_main_module(specifier, code).await
- }
-
fn poll_pending_ops(
&mut self,
cx: &mut Context,