Skip to content

[dead-code] chore: remove dead functions — 1 function removed#47093

Merged
pelikhan merged 1 commit into
mainfrom
dead-code/remove-NewIndeterminateProgressBar-20260721-c8218a55b71c16c4
Jul 22, 2026
Merged

[dead-code] chore: remove dead functions — 1 function removed#47093
pelikhan merged 1 commit into
mainfrom
dead-code/remove-NewIndeterminateProgressBar-20260721-c8218a55b71c16c4

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the dead NewIndeterminateProgressBar function from pkg/console/progress.go along with its associated test helper and golden test cases.

Changes

File Change
pkg/console/progress.go Deleted NewIndeterminateProgressBar() constructor (19 lines)
pkg/console/golden_test.go Deleted nonTTYIndeterminateProgressBar() helper and two test cases

Details

NewIndeterminateProgressBar created a ProgressBar in indeterminate mode (no known total) using a scaled, 40-wide progress widget with purple/info gradient. It was no longer called anywhere in the codebase.

Breaking Changes

NewIndeterminateProgressBar was a public API. Callers that imported it directly will fail to compile after this change.

Testing

Two golden tests for indeterminate progress bar rendering removed together with the production code.

Generated by PR Description Updater for #47093 · sonnet46 24.5 AIC · ⌖ 4.51 AIC · ⊞ 4.8K ·

Remove unreachable NewIndeterminateProgressBar from pkg/console/progress.go
along with its exclusive test helper nonTTYIndeterminateProgressBar and the
two indeterminate subtests in TestGolden_ProgressBarNonTTY.

The function has no callers in any non-test binary. The wasm stub in
progress_wasm.go is separately build-constrained and untouched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review July 22, 2026 05:46
Copilot AI review requested due to automatic review settings July 22, 2026 05:46
@pelikhan
pelikhan merged commit f83b279 into main Jul 22, 2026
23 checks passed
@pelikhan
pelikhan deleted the dead-code/remove-NewIndeterminateProgressBar-20260721-c8218a55b71c16c4 branch July 22, 2026 05:46
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. The PR removes dead code (NewIndeterminateProgressBar function and its tests). Test Quality Sentinel skipped.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ PR Code Quality Reviewer failed to deliver outputs during code quality review.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #47093 does not have the 'implementation' label and has 0 new lines of code in business logic directories (threshold: 100).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the native indeterminate progress-bar constructor and its associated golden tests.

Changes:

  • Removes NewIndeterminateProgressBar.
  • Removes indeterminate-mode golden test cases and helper.
Show a summary per file
File Description
pkg/console/progress.go Removes the native constructor.
pkg/console/golden_test.go Removes related golden tests.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread pkg/console/progress.go
@@ -70,24 +70,6 @@ func NewProgressBar(total int64) *ProgressBar {
}
}

@@ -358,16 +349,6 @@ func TestGolden_ProgressBarNonTTY(t *testing.T) {
bar := nonTTYProgressBar(0)
golden.RequireEqual(t, []byte(bar.Update(0)))
})

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review\n\nApplied /codebase-design — no issues found.\n\nClean, well-scoped dead-code removal: NewIndeterminateProgressBar and its exclusive test helper and golden subtests are deleted together. No callers remain, build and tests pass.\n\nSafe to merge.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · sonnet46 15.8 AIC · ⌖ 7.26 AIC · ⊞ 6.7K
Comment /matt to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean removal of NewIndeterminateProgressBar and its exclusive test helpers/subtests, with build and tests verified.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · sonnet46 14.3 AIC · ⌖ 5.05 AIC · ⊞ 5K

@github-actions github-actions Bot mentioned this pull request Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.83.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants