Skip to content

Remove unused getCurrentBranch() and applyDiff() exports#40

Merged
that-github-user merged 1 commit intomainfrom
issue-22-remove-dead-code
Mar 28, 2026
Merged

Remove unused getCurrentBranch() and applyDiff() exports#40
that-github-user merged 1 commit intomainfrom
issue-22-remove-dead-code

Conversation

@that-github-user
Copy link
Copy Markdown
Owner

Summary

  • Remove getCurrentBranch() — exported but never imported
  • Remove applyDiff() — exported but never imported; had dynamic import anti-pattern

Change type

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • CI / infrastructure
  • Chore

Related issue

Closes #22

How to test

npx tsc --noEmit  # types pass
npm test           # 40 tests pass
npm run lint       # passes

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with Claude Code

Both functions were exported but never imported anywhere in the codebase.
applyDiff() had a dynamic import anti-pattern; apply.ts uses its own
implementation via execFile.

Closes #22

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user
Copy link
Copy Markdown
Owner Author

Self-review: Verified no imports of either function via grep. Build passes, all 40 tests pass. 20 lines removed, 0 added.

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.

Remove dead code: unused getCurrentBranch() and applyDiff() exports

1 participant