From 683a38e47c47609d28bc6964f4b082885e477bf3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 24 Sep 2021 18:35:35 -0400 Subject: refactor: Remove unused code (#12210) --- core/inspector.rs | 6 ------ core/runtime.rs | 16 ---------------- 2 files changed, 22 deletions(-) (limited to 'core') diff --git a/core/inspector.rs b/core/inspector.rs index 74e50dc69..c4dddc5d6 100644 --- a/core/inspector.rs +++ b/core/inspector.rs @@ -50,12 +50,6 @@ pub struct InspectorSessionProxy { pub rx: SessionProxyReceiver, } -impl InspectorSessionProxy { - pub fn split(self) -> (SessionProxySender, SessionProxyReceiver) { - (self.tx, self.rx) - } -} - #[derive(Clone, Copy)] enum PollState { Idle, 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, - ) -> Result { - self.load_main_module(specifier, code).await - } - fn poll_pending_ops( &mut self, cx: &mut Context, -- cgit v1.2.3