Skip to content

chore(authorship): remove dead LineRange::overlaps and CheckpointKind::from_str#1333

Open
jwiegley wants to merge 1 commit into
dc/authorship-serialization-cleanupfrom
dc/authorship-helpers-cleanup
Open

chore(authorship): remove dead LineRange::overlaps and CheckpointKind::from_str#1333
jwiegley wants to merge 1 commit into
dc/authorship-serialization-cleanupfrom
dc/authorship-helpers-cleanup

Conversation

@jwiegley
Copy link
Copy Markdown
Contributor

@jwiegley jwiegley commented May 11, 2026

Summary

LineRange::overlaps had zero callers — all .overlaps() calls in the codebase target LineAttribution::overlaps(u32,u32) or Attribution::overlaps(usize,usize) which have different signatures. CheckpointKind::from_str was unreachable; checkpoint kinds are matched via serde deserialization.

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 1 additional finding.

Open in Devin Review

@jwiegley jwiegley requested review from heapwolf and svarlamov May 11, 2026 20:51
@jwiegley jwiegley force-pushed the dc/authorship-serialization-cleanup branch from 9ed496f to e0142df Compare May 13, 2026 18:03
@jwiegley jwiegley force-pushed the dc/authorship-helpers-cleanup branch 2 times, most recently from 6037a11 to 97d01b8 Compare May 19, 2026 22:24
@jwiegley jwiegley force-pushed the dc/authorship-serialization-cleanup branch from e0142df to 4f7a1d2 Compare May 19, 2026 22:24
@jwiegley jwiegley force-pushed the dc/authorship-helpers-cleanup branch from 97d01b8 to 7554d6e Compare May 26, 2026 17:19
…::from_str

LineRange::overlaps had zero callers — callers of overlaps throughout the
codebase target LineAttribution::overlaps(u32, u32) or
Attribution::overlaps(usize, usize), which have different signatures.
CheckpointKind::from_str was similarly unreachable; checkpoint kinds are
matched via serde deserialization, not string parsing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the dc/authorship-helpers-cleanup branch from 7554d6e to 7be185c Compare May 28, 2026 18:13
@jwiegley jwiegley force-pushed the dc/authorship-serialization-cleanup branch from 233d28d to 699f929 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