chore: delete code no binary or test reaches

This commit is contained in:
sam committed 2026-10-17 10:14:26 +11:00
1 parent 7986ccb3f7
commit 01acb97f96
34 files changed
+1 -1483

No files matched your search

-19
View File
@@ -52,17 +52,6 @@ const (
Completed = "completed"
)
// Terminal reports whether a status is an end state, from which no further
// work happens without an operator asking for it.
func Terminal(status string) bool {
switch status {
case Merged, Rejected, Dead, Declined, Completed:
return true
default:
return false
}
}
// Actions returns the actions valid for status, as a new slice. Reject is
// available in every non-terminal state; terminal states offer archive.
func Actions(status string) []Action {
@@ -117,14 +106,6 @@ func CheckApprove(status string) error {
return nil
}
// CheckRetry allows retry only from Parked.
func CheckRetry(status string) error {
if status != Parked {
return fmt.Errorf("task is %s, not parked", status)
}
return nil
}
// RetryMode is the worktree mode for a retried task's next dispatch. Stored
// on the task row.
type RetryMode string