Skip to content

Commit c625cad

Browse files
committed
fix: remove unused isPow2 (golangci-lint unused) breaking CI on main
Leftover from the stall-escalation work: the milestone-map approach replaced the power-of-two cadence check but the helper stayed. Local go vet does not flag unused funcs; CI's golangci-lint does.
1 parent 00669cc commit c625cad

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎internal/loop/loop.go‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,11 +3881,6 @@ func isBGPollTool(name string) bool {
38813881
return name == "bg_status" || name == "bg_output"
38823882
}
38833883

3884-
// isPow2 reports whether n is a positive power of two.
3885-
func isPow2(n int) bool {
3886-
return n > 0 && n&(n-1) == 0
3887-
}
3888-
38893884
// againSuffix marks an escalated (repeat) stall hint so the model can tell
38903885
// it apart from the first one — the loop is persistent, not self-correcting.
38913886
func againSuffix(repeat bool) string {

0 commit comments

Comments
 (0)