Remove unused dialog and finding helpers
This commit is contained in:
@@ -100,10 +100,6 @@ final class Overlays {
|
||||
return await showModal(content, [ModalButton(label: "Cancel", value: "cancel"), ModalButton(label: action, value: "ok", primary: true, danger: danger)], anchor: anchor, inPane: inPane) == "ok"
|
||||
}
|
||||
|
||||
func showChoice(_ content: some View, _ choices: [ModalButton], anchor: CGRect? = nil) async -> String {
|
||||
await showModal(content, [ModalButton(label: "Cancel", value: "cancel")] + choices, anchor: anchor)
|
||||
}
|
||||
|
||||
func answerModal(_ value: String) {
|
||||
let m = modal
|
||||
modal = nil
|
||||
|
||||
Reference in New Issue
Block a user