Skip to content

Remove unused util.Map function#3678

Open
zackverham wants to merge 1 commit intomainfrom
remove-dead-util-map
Open

Remove unused util.Map function#3678
zackverham wants to merge 1 commit intomainfrom
remove-dead-util-map

Conversation

@zackverham
Copy link
Collaborator

Summary

  • Deletes internal/util/slice.go which contains a single unused generic Map function
  • The function has zero callers in the codebase (the test that previously used it was removed)
  • Go's native range loops and standard library cover this use case

Test plan

  • go build ./... passes with the file removed
  • No test changes needed — there were no tests for this function

🤖 Generated with Claude Code

The generic Map function in internal/util/slice.go has no callers in
the codebase. Go's standard library and native range loops cover this
use case, so the helper is unnecessary dead code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zackverham zackverham requested a review from a team as a code owner March 10, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant