Skip to content

Clear the deprecation warnings that change no behavior - #583

Merged
hannesa2 merged 1 commit into
gitx:masterfrom
goneng:clear-noop-deprecation-warnings
Aug 22, 2026
Merged

hannesa2 merged 1 commit into
gitx:masterfrom
goneng:clear-noop-deprecation-warnings

Conversation

@goneng

@goneng goneng commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

Clear five deprecation warnings whose replacements were confirmed to
produce identical results, so nothing here can change what the app does.

  • Take selectedContentBackgroundColor and
    unemphasizedSelectedContentBackgroundColor for the search result
    highlight; both measure byte-identical to the colors they replace in
    the Aqua, Dark Aqua, and high-contrast appearances
  • Drop setBorderType: from the rewind panel's box, which is
    NSBoxCustom and renders pixel-identical with or without it
  • Bind the clicked commit and the selected commits at their declared
    types, which the compiler already reports as always succeeding

Warnings go from 69 to 64 in GitX's own sources. The rest of the build's
warnings come from the vendored ObjectiveGit and libgit2 headers and are
not addressable from this repository.

Test plan

  • xcodebuild test -only-testing:GitXTests passes 39/39, unchanged
  • Clean build drops exactly the five intended warnings and introduces
    none, confirmed by diffing the deduplicated warning sets
  • Color equality and box rendering were checked out of band rather than
    assumed, since both would otherwise be silent visual changes

Replace three deprecated spellings whose successors were confirmed to
produce identical results, so the cleanup carries no visual or runtime
risk.

- Take the emphasized and unemphasized selection colors, which measure
  identical in light, dark, and high-contrast appearances
- Drop the border type, which a custom-style NSBox renders identically
  with or without it
- Bind the clicked commit and the selected commits at their declared
  types, as the compiler reports both casts as always succeeding
@goneng
goneng marked this pull request as ready for review August 22, 2026 19:36
@hannesa2
hannesa2 merged commit 00cdffa into gitx:master Aug 22, 2026
3 checks passed
@goneng
goneng deleted the clear-noop-deprecation-warnings branch August 23, 2026 14:01
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.

2 participants