Skip to content

chore(metrics): remove dead null-setter builder methods#1337

Open
jwiegley wants to merge 1 commit into
dc/git-diff-tree-cleanupfrom
dc/metrics-null-builders-cleanup
Open

chore(metrics): remove dead null-setter builder methods#1337
jwiegley wants to merge 1 commit into
dc/git-diff-tree-cleanupfrom
dc/metrics-null-builders-cleanup

Conversation

@jwiegley
Copy link
Copy Markdown
Contributor

@jwiegley jwiegley commented May 11, 2026

Summary

EventAttributes, CommittedValues, and CheckpointValues each had *_null() methods for sparse-encoding fields as Some(None). Methods with zero production callers are removed along with their tests. Methods called from production code (post_commit.rs, install_hooks.rs) are retained.

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 bugs or issues to report.

Open in Devin Review

EventAttributes, CommittedValues, and CheckpointValues each had a set
of *_null() methods for setting sparse-encoded fields to Some(None).
Those with zero callers outside their own unit tests are removed along
with the tests that exclusively covered them. Methods called from
production code (post_commit.rs, install_hooks.rs) are retained.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the dc/git-diff-tree-cleanup branch from 27c3eee to d4ae464 Compare May 28, 2026 18:13
@jwiegley jwiegley force-pushed the dc/metrics-null-builders-cleanup branch from 21c1a42 to d13815d 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