mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 08:32:27 +03:00
Remove window methods from AsyncAppContext
This commit is contained in:
parent
1fd80ba8bd
commit
4f10f0ee86
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user