Skip to content

chore(supervisor): remove unused AppendToLog#7

Closed
sunrunnerfire wants to merge 1 commit into
mainfrom
chore/unexport-appendtolog
Closed

chore(supervisor): remove unused AppendToLog#7
sunrunnerfire wants to merge 1 commit into
mainfrom
chore/unexport-appendtolog

Conversation

@sunrunnerfire
Copy link
Copy Markdown
Contributor

Summary

  • AppendToLog in internal/supervisor/supervisor.go was documented as a "convenience for tests that want to write to the slot's log file without spawning a child," but had zero callers anywhere in the repo.
  • Verified with grep -rn "AppendToLog\|appendToLog" --include="*.go" . — only the definition matched. No tests, no cmd/ usage, no transitive reach via supervisor.NewSlot / supervisor.ReapOrphans.
  • Pre-existing dead exported surface — not added by the recent v0.7.2 stability work. Removed entirely (cleaner than unexporting unused code).
  • io import stays — still used by logFile io.WriteCloser at line 107.

Test plan

  • go build ./... — clean
  • go vet ./... — clean
  • go test ./... — all packages pass (incl. internal/supervisor)

The function was documented as a 'convenience for tests' but had zero
callers across the entire repo - no tests, no cmd/, no transitive use
via supervisor.NewSlot or supervisor.ReapOrphans. Dead exported surface.
@sunrunnerfire sunrunnerfire deleted the chore/unexport-appendtolog branch May 25, 2026 17:39
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