Remove unused dialog and finding helpers

This commit is contained in:
Ian Gulliver
2026-10-21 14:06:05 -07:00
parent 5c50fa857f
commit 67990178c4
2 changed files with 0 additions and 8 deletions
-4
View File
@@ -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" 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) { func answerModal(_ value: String) {
let m = modal let m = modal
modal = nil modal = nil
-4
View File
@@ -999,10 +999,6 @@ func findings(_ r: Review) -> [JSONDict] {
(r.result?.value["findings"] as? [(any Sendable)?] ?? []).map { $0 as? 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? { func latestReviewedSnapshot(_ events: ArraySlice<ByreEvent>) -> Int? {
var best: Int? var best: Int?
for ev in events where isReviewEvent(ev) { for ev in events where isReviewEvent(ev) {