dialogs: drop the owed take_child_erased (dialogs-w1 wrote DialogHost's child opening)

This commit is contained in:
Martin Ball
2026-11-18 18:19:32 +00:00
parent 54223a5434
commit a2da454b55
-5
View File
@@ -217,7 +217,6 @@ trait AnyStackDialog: Send {
fn key(&self) -> Option<String>;
fn instance(&self) -> Option<DialogId>;
fn confirm_erased(&mut self, ctx: &Context) -> Option<Box<dyn Any + Send>>;
fn take_child_erased(&mut self) -> Option<ChildDialog>;
fn held_state(&self) -> Option<HeldOk>;
fn canvas(&self) -> Option<egui::Id>;
fn json_fields(&self) -> Option<Value>;
@@ -259,10 +258,6 @@ impl<D: StackDialog> AnyStackDialog for D {
self.confirm(ctx).map(|result| Box::new(DialogResult::Ok(result)) as Box<dyn Any + Send>)
}
fn take_child_erased(&mut self) -> Option<ChildDialog> {
StackDialog::take_child(self)
}
fn held_state(&self) -> Option<HeldOk> {
StackDialog::held_state(self)
}