Skip to content

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

Merged
pelikhan merged 1 commit intomainfrom
chore/dead-code-remove-2026-05-06-2329e6f4158ca187
May 6, 2026
Merged

[dead-code] chore: remove dead functions — 1 function removed#30639
pelikhan merged 1 commit intomainfrom
chore/dead-code-remove-2026-05-06-2329e6f4158ca187

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 6, 2026

Dead Code Removal

This PR removes unreachable Go functions identified by the deadcode static analyzer.

Functions Removed

Function File
ValidateAWFConfigJSON pkg/workflow/awf_config.go

Tests Removed

None.

Verification

  • go build ./... — passes
  • go vet ./... — passes
  • go vet -tags=integration ./... — passes
  • make fmt — no changes needed

Dead Function Count

  • Before this batch: ~8 functions
  • Removed in this PR: 1 function
  • Remaining: ~7 functions (several are WASM-live or have non-test callers)

Automated by Dead Code Removal workflow — https://github.com/github/gh-aw/actions/runs/25443535713

Generated by Dead Code Removal Agent · ● 9.1M ·

  • expires on May 9, 2026, 3:18 PM UTC

Remove unreachable exported function ValidateAWFConfigJSON, which is
a thin wrapper around validateAWFConfigJSON with no callers outside
of its own definition.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review May 6, 2026 15:23
Copilot AI review requested due to automatic review settings May 6, 2026 15:23
@pelikhan pelikhan merged commit f6a4b47 into main May 6, 2026
19 of 20 checks passed
@pelikhan pelikhan deleted the chore/dead-code-remove-2026-05-06-2329e6f4158ca187 branch May 6, 2026 15:24
Copy link
Copy Markdown
Contributor Author

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /zoom-out — appropriate for a cleanup/dead-code removal PR.

Summary

This PR removes a single exported wrapper function ValidateAWFConfigJSON that delegated directly to the unexported validateAWFConfigJSON. Per the DEADCODE.md tracking file, this is a routine hygiene change.

Verdict

✅ Clean, minimal change. The unexported function remains and the exported wrapper added no value beyond what callers could not access internally. No issues found.

Positive Highlights

  • ✅ No logic change — purely removing an indirection layer
  • ✅ Consistent with the project's DEADCODE.md dead-code tracking practice
  • ✅ The removed comment accurately described why the export existed; removing both together keeps the codebase clean

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · ● 1.1M

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.

1 participant