Skip to content

Remove unused sortedHeaderKeys function#40

Merged
JamieMagee merged 1 commit intomainfrom
jamiemagee/remove-unused-function
Feb 10, 2026
Merged

Remove unused sortedHeaderKeys function#40
JamieMagee merged 1 commit intomainfrom
jamiemagee/remove-unused-function

Conversation

@JamieMagee
Copy link
Copy Markdown
Member

sortedHeaderKeys in logging.go isn't called anywhere. golangci-lint's unused checker flags it. This removes the function and drops the sort import, which nothing else in the file needs.

The sortedHeaderKeys function in logging.go was flagged by golangci-lint's
unused checker. It's not called anywhere, so remove it along with the sort
import it was the sole consumer of.
Copilot AI review requested due to automatic review settings February 10, 2026 21:25
@JamieMagee JamieMagee enabled auto-merge (squash) February 10, 2026 21:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes an unused helper from the proxy’s main logging.go file to satisfy golangci-lint’s unused checker, keeping the logging code free of dead code and unnecessary imports.

Changes:

  • Removed the unused sortedHeaderKeys function.
  • Dropped the now-unused sort import from logging.go.

@JamieMagee JamieMagee merged commit 527e02f into main Feb 10, 2026
96 of 97 checks passed
@JamieMagee JamieMagee deleted the jamiemagee/remove-unused-function branch February 10, 2026 21:28
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.

3 participants