Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove window methods from AsyncAppContext
Nathan Sobo4f10f0ee865b
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rsindex 2b3a3f3bf4a..ddec0e10a3c 100644--- a/crates/gpui/src/app.rs+++ b/crates/gpui/src/app.rs@@ -344,22 +344,6 @@ impl AsyncAppContext {self.0.borrow().windows().collect()}- pub fn read_window<T, F: FnOnce(&WindowContext) -> T>(- &self,- window: AnyWindowHandle,- callback: F,- ) -> Option<T> {- self.0.borrow_mut().read_window(window, callback)- }-- pub fn update_window<T, F: FnOnce(&mut WindowContext) -> T>(- &mut self,- window: AnyWindowHandle,- callback: F,- ) -> Option<T> {- self.0.borrow_mut().update_window(window, callback)- }-pub fn debug_elements(&self, window: AnyWindowHandle) -> Option<json::Value> {self.0.borrow().read_window(window, |cx| {let root_view = cx.window.root_view();