Repository navigation
Remove dead code: unused helpers, fields, accessors and test hooks - #213
Merged
Merged
Conversation
Delete symbols with no callers: the single-root ArchiveHash wrappers and the unread hashInput and allRootsLocal fields, the unwired resetReconcileDisplay, suggestedLogfile and evaluateAbsentFile, the Setup path-care helper and note, six orphaned test accessors, and seven unused accessors. The hash digest tests now go through the multi-root function. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior-preserving deletion of code with no callers. 17 files, +26/-152.
Removed (each checked by grepping Sources and Tests for references)
computeandcomputeFromProfileText(no product callers), and the unreadhashInputandallRootsLocalfields. The digest and multi-root tests are kept; the single-root ones now go throughcomputeAllFromProfileTextwith a small test helper, so the same inputs and assertions run.SettingsModel.resetReconcileDisplayandsuggestedLogfile,CommandLineSetupBound.evaluateAbsentFile, and the Setup path-care helpercommandPathNeedsCarewith itscommandPathCareNotecopy. Tests that existed only forresetReconcileDisplay(2) andcommandPathNeedsCare(1) are removed with them.includesDetailsForTesting,checkIsRunningForTesting,conflictSelectionIndexForTesting,checkStatusFitsForTesting,keyNavAdvanceForTesting,outlineViewForTesting. The live layout and menu hooks, including the auto-presentation assertion andcheckStatusGeometryForTesting, stay.didAcquire,isAcquiring,outstandingOwner,ProfileFileOpsError.localizedMessage,ProfileDocument.hasPassThroughDirectives,UnisonPreferenceCatalog.allNames, and the privatecommandLineSyncDecisionActive(its comment said the window-close path consults it; nothing does).Deliberately left
lifecycle,bridge,ocamlStatusandremoteCheckhave no uses, but MANUAL.md documentsbridgeandocaml-statusas filters. Removing the constants would only hide that the documented categories log nothing; whether to log to them or fix the manual is a separate decision.isValidPermsMask(removing it changes when the user sees an error), the delegate and protocol methods that appear once by design, and the hashing used by abandoned-staging recovery.Verification
Builds clean. Full suite locally: 1594 tests, 0 failures (3 fewer than before, the three tests of removed helpers). Not run: a Release build.
🤖 Generated with Claude Code