Repository navigation
chore: prune comments that restate the code - #28
Merged
Merged
Conversation
Base automatically changed from
fix/shortcut-modifier-self-collision
to
master
September 7, 2026 03:52
rbstp
force-pushed
the
chore/trim-comments
branch
from
September 7, 2026 03:53
6fedf7f to
1808cd6
Compare
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.
A pass over every file removing comments that say what the code already says. No code changed.
What went, outright rather than shortened:
/// The last window accepted as a focus target.overlastResolved)./// Nil when ...restatements of anOptional, and/// Returns ...restatements of a returntype.
What stayed is only what the code cannot show: platform quirks (Carbon refuses a combination the
same process holds; a template
NSImageis a mask, so a flash colour must be drawn in rather thantinted on;
bootoutrather thanstopbecause KeepAlive restarts a stopped job), why an obviousapproach was rejected (the window server cannot answer "did focus move", so it is sampled; a window
server number rather than a frame, because two maximised windows share a frame), cost notes that
justify a shape (a ring build is many cross-process calls), and thread ownership.
Sources/Tests/Test comments were left nearly alone on purpose. They mostly record the real-world scenario a case
models — "a Space switch shows a different window under a pointer that never moved", "launchd starts
Heed with no arguments, and macOS can add a
-psn_one" — which the test name cannot carry. Only the12 that repeated their own function name went.
Agent.swiftkept the most (271 of the 404), because that is where the domain knowledge lives:almost every comment in it is a guard explaining why it is not the obvious thing. Happy to go
further there if it is still too much.
266 tests pass and
make check-packagepasses.git diff master -- Sources Testswith commentlines filtered out is empty.