Skip to content

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

Merged
pelikhan merged 1 commit into
mainfrom
chore/remove-dead-colorwriter-stdout-0d5a468f5654e25c
Jul 20, 2026
Merged

[dead-code] chore: remove dead functions — 1 function removed#46860
pelikhan merged 1 commit into
mainfrom
chore/remove-dead-colorwriter-stdout-0d5a468f5654e25c

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

test

Generated by PR Description Updater for #46860 · 26.6 AIC · ⌖ 6.96 AIC · ⊞ 4.8K ·

Remove unreachable Stdout function from pkg/colorwriter package.
The function had no callers in production code; only the spec_test.go
called it which has been removed as well.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review July 20, 2026 15:14
Copilot AI review requested due to automatic review settings July 20, 2026 15:14
@pelikhan
pelikhan merged commit f1220ce into main Jul 20, 2026
22 checks passed
@pelikhan
pelikhan deleted the chore/remove-dead-colorwriter-stdout-0d5a468f5654e25c branch July 20, 2026 15:14
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

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

No ADR enforcement needed: PR does not have the 'implementation' label and has ≤100 new lines of code in business logic directories (0 additions detected in default business logic directories: src/, lib/, pkg/, internal/, app/, core/, domain/, services/, api/).

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped. (PR #46860 removed dead functions: 0 test additions, only deletions from existing tests.)

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

PR Code Quality Reviewer completed the code quality review.

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

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

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 colorwriter.Stdout convenience API across platforms and its specification test.

Changes:

  • Removes native and wasm Stdout implementations.
  • Removes the associated public API test.
Show a summary per file
File Description
pkg/colorwriter/colorprofile_writer.go Removes native Stdout.
pkg/colorwriter/colorprofile_writer_wasm.go Removes wasm Stdout stub.
pkg/colorwriter/spec_test.go Removes the Stdout API test.

Review details

Tip

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

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

@@ -22,12 +22,6 @@ func Stderr() io.Writer {
return New(os.Stderr, os.Environ())
}

@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.

Dead-code removal is clean. Both build targets and the corresponding test are consistently removed, no remaining callers exist, and CI verifications are confirmed in the PR description. No issues found.

🔎 Code quality review by PR Code Quality Reviewer · 10.4 AIC · ⌖ 4.3 AIC · ⊞ 5.6K
Comment /review 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.

Clean dead-code removal of the unused Stdout() function from both the native and wasm colorwriter implementations. No callers remain in the codebase, the corresponding test is also removed, and the build/vet checks pass. LGTM.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · 11.9 AIC · ⌖ 6.99 AIC · ⊞ 5K

@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 🧠

Applied /codebase-design — no blocking issues, one follow-up needed.

📋 Summary

The removal of Stdout is clean: no non-test callers exist and both build variants are updated in sync. The only gap is that pkg/colorwriter/README.md still lists Stdout in the Public API and Build variants tables; it should be updated to match the new surface area.

Positive Highlights

  • ✅ Both build variants (colorprofile_writer.go and colorprofile_writer_wasm.go) updated consistently
  • ✅ Corresponding spec test removed alongside the implementation — no dangling test
  • ✅ PR description includes build/vet verification evidence

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

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

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.82.14

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