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
|
||||
|
||||
@@ -999,10 +999,6 @@ func findings(_ r: Review) -> [JSONDict] {
|
||||
(r.result?.value["findings"] as? [(any Sendable)?] ?? []).map { $0 as? JSONDict ?? [:] }
|
||||
}
|
||||
|
||||
func findingCount(_ r: Review) -> Int {
|
||||
r.state == .done ? findings(r).indices.filter { findingOpen(r, $0) }.count : 0
|
||||
}
|
||||
|
||||
func latestReviewedSnapshot(_ events: ArraySlice<ByreEvent>) -> Int? {
|
||||
var best: Int?
|
||||
for ev in events where isReviewEvent(ev) {
|
||||
|
||||
Reference in New Issue
Block a user