From d2da9108cd82b7d26c65c1fa44025a1b0822fb29 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 11 Aug 2025 22:47:56 -0600 Subject: [PATCH] Tidy --- crates/gpui/src/app.rs | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 4f7c74c0a5..c372edf10e 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -113,7 +113,7 @@ impl AppCell { let futures = futures::future::join_all(futures); futures::pin_mut!(futures); let mut start = std::time::Instant::now(); - while dbg!(start.elapsed() < SHUTDOWN_TIMEOUT) { + while start.elapsed() < SHUTDOWN_TIMEOUT { match futures.as_mut().poll(&mut future_cx) { Poll::Pending => { executor.tick(); @@ -420,32 +420,6 @@ impl App { app } - /// Quit the application gracefully. Handlers registered with [`Context::on_app_quit`] - /// will be given 100ms to complete before exiting. - pub fn shutdown_old(&mut self) { - let mut futures = Vec::new(); - - for observer in self.quit_observers.remove(&()) { - futures.push(observer(self)); - } - - self.windows.clear(); - self.window_handles.clear(); - self.flush_effects(); - self.quitting = true; - - let futures = futures::future::join_all(futures); - if self - .background_executor - .block_with_timeout(SHUTDOWN_TIMEOUT, futures) - .is_err() - { - log::error!("timed out waiting on app_will_quit"); - } - - self.quitting = false; - } - /// Get the id of the current keyboard layout pub fn keyboard_layout(&self) -> &dyn PlatformKeyboardLayout { self.keyboard_layout.as_ref()