Skip to content

Remove dead code from Go backend#3696

Merged
zackverham merged 2 commits intomainfrom
remove-dead-appmode-methods
Mar 11, 2026
Merged

Remove dead code from Go backend#3696
zackverham merged 2 commits intomainfrom
remove-dead-appmode-methods

Conversation

@zackverham
Copy link
Collaborator

@zackverham zackverham commented Mar 11, 2026

Summary

  • Remove 19 unused AppMode methods from internal/clients/types/apptypes.go that were only exercised by tests but never called in production code (IsWorkerApp, IsShinyApp, IsDashApp, IsBokehApp, etc.)
  • Remove unused NewManifestFileMap constructor from internal/bundles/manifest.go (callers use make(ManifestFileMap) directly)
  • Remove entire internal/services/proxy/ package (never imported anywhere in the codebase)
  • Remove unused WriteManifest and WriteManifestFile methods from internal/bundles/manifest.go (never called)
  • Remove unused CanPublish method from internal/clients/connect/client_connect.go (never called)
  • Remove unused NewOptional[T] constructor from internal/types/optional.go (production code creates Optional values via JSON unmarshal only)

Test plan

  • go build ./internal/... ./cmd/... passes
  • go test -short ./internal/... passes (all 40+ packages)
  • Updated test code to remove references to deleted functions

🤖 Generated with Claude Code

Remove 19 dead AppMode methods from internal/clients/types that were
only exercised by tests but never called in production code. Also remove
the unused NewManifestFileMap constructor (callers use make() directly).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zackverham zackverham marked this pull request as ready for review March 11, 2026 16:31
@zackverham zackverham requested a review from a team as a code owner March 11, 2026 16:31
- Remove entire internal/services/proxy/ package (never imported)
- Remove unused WriteManifest and WriteManifestFile from bundles/manifest.go
- Remove unused CanPublish method from connect/client_connect.go
- Remove unused NewOptional constructor from types/optional.go

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zackverham zackverham changed the title Remove unused AppMode methods and NewManifestFileMap function Remove dead code from Go backend Mar 11, 2026
Copy link
Collaborator

@dotNomad dotNomad left a comment

Choose a reason for hiding this comment

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

🔥

@zackverham zackverham merged commit dd7a826 into main Mar 11, 2026
27 checks passed
@zackverham zackverham deleted the remove-dead-appmode-methods branch March 11, 2026 19:04
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.

2 participants