Repository navigation
chore(monetization): delete the never-wired AdPresentationAnchor subsystem + orphan currentBannerStatus - #923
Merged
Conversation
…ystem + orphan currentBannerStatus #757 wave-6. The AdPresentationAnchor window-anchoring layer had no production call site — the AdsAdMob adapter resolves the presentation VC directly via LiveAdMobBridge.resolveRootViewController() and never registered or resolved an anchor (the +Resolve helpers and the registry were never even reconciled — different lookup shapes — because neither was exercised). And AdMobBridge.currentBannerStatus() was a protocol requirement with zero consumers (LiveAdMobAdProvider tracks its own lastKnownStatus). Deleted whole: AdPresentationAnchor.swift, AdPresentationAnchor+Resolve.swift, AdPresentationAnchorRegistry.swift, and AdPresentationAnchorRegistryTests.swift (existed only to exercise the dead code). Removed currentBannerStatus() from the AdMobBridge protocol + both conformers + its ProtocolShapeTests assertion. Net -255 lines. Also converged MinesweeperApp's @main shell to SudokuApp's explicit-composition-type style (mirror nit). Per-symbol grep confirmed zero production call sites before deletion; a post-delete repo-wide grep is clean. Behavior-inert — the live banner load/present path (resolveRootViewController) is untouched. Known tail (leave-with-follow-up, per CR): removing currentBannerStatus() leaves LiveAdMobBridge.state / FakeAdMobBridge.cachedStatus + their setCachedStatus writers write-only — a smaller dead-code tail a future #757 wave can pick off. Verified: AppMonetizationKit build clean + 120 tests pass; swiftlint --strict 0 violations. Dual CR: APPROVE-with-cosmetic (indent glitch, fixed) + APPROVE. Closes #922 Co-Authored-By: Claude Fable 5 <[email protected]>
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.
What
Deletes the never-wired
AdPresentationAnchorwindow-anchoring subsystem (3 source files + its test) and the orphanAdMobBridge.currentBannerStatus()protocol requirement. Net −255 lines. Also converges MinesweeperApp's@mainshell to SudokuApp's explicit-composition-type style.Why
#757 wave-6 triage. The anchor subsystem had zero production call sites — AdsAdMob resolves the presentation VC directly via
LiveAdMobBridge.resolveRootViewController().currentBannerStatus()had zero consumers (LiveAdMobAdProvideruses its ownlastKnownStatus). Speculative infra that shipped unwired.Verification
swiftlint --strict0 violations.resolveRootViewController) is untouched.Known tail (per CR, leave-with-follow-up): removing
currentBannerStatus()leavesLiveAdMobBridge.state/FakeAdMobBridge.cachedStatus+ theirsetCachedStatuswriters write-only — a smaller dead-code tail for a future #757 wave.Closes #922
🤖 Generated with Claude Code