Remove window methods from AsyncAppContext

This commit is contained in:
Nathan Sobo 2023-08-08 11:23:49 -06:00
parent 1fd80ba8bd
commit 4f10f0ee86

View File

@ -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();