Inline test-only AppContext
methods
This commit is contained in:
parent
eb2cce98a7
commit
6c931ab9da
2 changed files with 7 additions and 20 deletions
|
@ -1062,10 +1062,6 @@ impl AppContext {
|
|||
}
|
||||
}
|
||||
|
||||
fn dispatch_global_action<A: Action>(&mut self, action: A) {
|
||||
self.dispatch_global_action_any(&action);
|
||||
}
|
||||
|
||||
fn dispatch_global_action_any(&mut self, action: &dyn Action) -> bool {
|
||||
self.update(|this| {
|
||||
if let Some((name, mut handler)) = this.global_actions.remove_entry(&action.id()) {
|
||||
|
@ -1907,17 +1903,6 @@ impl AppContext {
|
|||
});
|
||||
}
|
||||
|
||||
fn handle_dispatch_action_from_effect(
|
||||
&mut self,
|
||||
window_id: usize,
|
||||
view_id: Option<usize>,
|
||||
action: &dyn Action,
|
||||
) {
|
||||
self.update_window(window_id, |cx| {
|
||||
cx.handle_dispatch_action_from_effect(view_id, action)
|
||||
});
|
||||
}
|
||||
|
||||
fn handle_action_dispatch_notification_effect(&mut self, action_id: TypeId) {
|
||||
self.action_dispatch_observations
|
||||
.clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue