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) --- runtime/tokio_util.rs | 9 --------- runtime/web_worker.rs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'runtime') diff --git a/runtime/tokio_util.rs b/runtime/tokio_util.rs index 5ee45325d..7a6f4d49e 100644 --- a/runtime/tokio_util.rs +++ b/runtime/tokio_util.rs @@ -13,12 +13,3 @@ pub fn create_basic_runtime() -> tokio::runtime::Runtime { .build() .unwrap() } - -// TODO(ry) rename to run_local ? -pub fn run_basic(future: F) -> R -where - F: std::future::Future, -{ - let rt = create_basic_runtime(); - rt.block_on(future) -} diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 528546e9a..7dd408292 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -505,7 +505,7 @@ impl WebWorker { } } - pub fn poll_event_loop( + fn poll_event_loop( &mut self, cx: &mut Context, wait_for_inspector: bool, -- cgit v1.2.3