From 67990178c44e00875d2db8a4e14b16a3be767565 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 21 Oct 2026 14:06:05 -0700 Subject: [PATCH] Remove unused dialog and finding helpers --- mac/Sources/Byre/Dialogs.swift | 4 ---- mac/Sources/Byre/TranscriptBuilder.swift | 4 ---- 2 files changed, 8 deletions(-) diff --git a/mac/Sources/Byre/Dialogs.swift b/mac/Sources/Byre/Dialogs.swift index e42a603..7b06fcd 100644 --- a/mac/Sources/Byre/Dialogs.swift +++ b/mac/Sources/Byre/Dialogs.swift @@ -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 diff --git a/mac/Sources/Byre/TranscriptBuilder.swift b/mac/Sources/Byre/TranscriptBuilder.swift index f76a95a..6610a4b 100644 --- a/mac/Sources/Byre/TranscriptBuilder.swift +++ b/mac/Sources/Byre/TranscriptBuilder.swift @@ -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) -> Int? { var best: Int? for ev in events where isReviewEvent(ev) {