Skip to content

Remove dead code: ImageSaver, composited(), unused colors and fonts#58

Merged
dadachi merged 1 commit intosubstrate-v2from
substrate-v2--dead-code
Apr 30, 2026
Merged

Remove dead code: ImageSaver, composited(), unused colors and fonts#58
dadachi merged 1 commit intosubstrate-v2from
substrate-v2--dead-code

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented Apr 30, 2026

Mirror of upstream nativeapptemplate/NativeAppTemplate-iOS#69.

Summary

Audited the production codebase for symbols with zero references outside their declaration site. All candidates verified by grepping both NativeAppTemplate/ and NativeAppTemplateTests/.

Removed:

  • ImageSaver class (Utilities/ImageSaver.swift) — no callers anywhere; whole file deleted.
  • UIImage.composited(withSmallCenterImage:) (Extensions/UIImage+Extentions.swift) — only caller was the QR-code generator removed in Phase 2A-2. File becomes empty; deleted.
  • Color.todayIndicator + its computed property wrapper (Styleguide/Color+Extensions.swift).
  • Color.tagWebpagePreviewBackground + its computed property wrapper.
  • Font.uiNumberBox (Styleguide/Font+Extensions.swift).
  • Font.uiUppercase — note: uiUppercaseTag is a separate, still-used style and was kept.

Net diff: 5 files, +0 / −91. No behavior change.

Test plan

  • make lint passes (138 files)
  • xcodebuild ... build-for-testing succeeds (iPhone 17, iOS 26.4.1)
  • Run tests in Xcode (Cmd+U)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit f2a02ac into substrate-v2 Apr 30, 2026
2 checks passed
@dadachi dadachi deleted the substrate-v2--dead-code branch April 30, 2026 00:04
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