Skip to content

chore(git): remove dead RewriteLogEvent factories and orphaned constructors#1335

Open
jwiegley wants to merge 1 commit into
dc/authorship-add-pathspec-cleanupfrom
dc/git-rewrite-log-cleanup
Open

chore(git): remove dead RewriteLogEvent factories and orphaned constructors#1335
jwiegley wants to merge 1 commit into
dc/authorship-add-pathspec-cleanupfrom
dc/git-rewrite-log-cleanup

Conversation

@jwiegley
Copy link
Copy Markdown
Contributor

@jwiegley jwiegley commented May 11, 2026

Summary

RewriteLogEvent::revert_mixed and authorship_logs_synced were factory functions with zero callers. The corresponding enum variants are retained for serde deserialization of persisted rewrite logs. With those factories gone, RebaseStartEvent::new, RevertMixedEvent::new, and AuthorshipLogsSyncedEvent::new became orphaned constructors — remove them too.

Test plan

  • task build passes
  • task lint passes

🤖 Generated with Claude Code


Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

…uctors

RewriteLogEvent::revert_mixed and authorship_logs_synced were factory
functions with zero callers — the corresponding enum variants are
retained for serde deserialization of persisted rewrite logs. With those
factories gone, RebaseStartEvent::new, RevertMixedEvent::new, and
AuthorshipLogsSyncedEvent::new became orphaned constructors with no
remaining callers; remove them too.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from f1f74c3 to cc52733 Compare May 28, 2026 18:13
@jwiegley jwiegley force-pushed the dc/git-rewrite-log-cleanup branch from 613436b to 1db811d Compare May 28, 2026 18:13
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