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

@jwiegley jwiegley commented May 11, 2026

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Contributor

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

@jwiegley jwiegley requested review from heapwolf and svarlamov May 11, 2026 20:52
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from 67ffe40 to dc439a7 Compare May 13, 2026 18:03
@jwiegley jwiegley force-pushed the dc/git-rewrite-log-cleanup branch from 0dd3d00 to 580dd2c Compare May 13, 2026 18:03
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from dc439a7 to 7845736 Compare May 19, 2026 22:24
@jwiegley jwiegley force-pushed the dc/git-rewrite-log-cleanup branch from 580dd2c to 27302e2 Compare May 19, 2026 22:24
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from 7845736 to f1f74c3 Compare May 26, 2026 17:19
@jwiegley jwiegley force-pushed the dc/git-rewrite-log-cleanup branch from 27302e2 to 613436b Compare May 26, 2026 17:19
@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
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from cc52733 to f5ad53c Compare June 1, 2026 18:30
@jwiegley jwiegley force-pushed the dc/git-rewrite-log-cleanup branch from 1db811d to 8a9c5f3 Compare June 1, 2026 18:30
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from f5ad53c to e75f51e Compare June 8, 2026 17:56
@jwiegley jwiegley force-pushed the dc/git-rewrite-log-cleanup branch from 8a9c5f3 to 3733b1b Compare June 8, 2026 17:56
devin-ai-integration[bot]

This comment was marked as resolved.

…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/git-rewrite-log-cleanup branch from 3733b1b to 6bdf5c8 Compare June 9, 2026 16:36
@jwiegley jwiegley force-pushed the dc/authorship-add-pathspec-cleanup branch from e75f51e to 96fb3fd Compare June 9, 2026 16:36
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