Modern Apps git

← Modern-Apps.git

games-solitaire: remove dead klondikeAutoCompleteImpl (#tests)

Commit
e2d5df59a180252c5802764d9135ce87511942c4
Author
Vayun Mathur <[email protected]>
When
2026-11-16 13:24 UTC (20 days ago)
Parents
20f8973
klondikeAutoCompleteImpl was internal and had no callers anywhere
in the module: SolitaireViewModel.klondikeAutoComplete() dispatches
directly to requestAutoCompleteImpl, and the instant/skip paths go
through skipAutoCompleteToEnd/finishedKlondikeAutoComplete. Verified
by searching all of games/solitaire, library and sdk for the name;
only the definition existed.

No behaviour change: the animated run, skip-to-end and win check
are untouched. No *Ops rules changed, so solvable-deal seed tables
remain valid.

Verified as part of the following coverage run:
:games:solitaire:testDevUnitTest, detekt and lint green.

Diff

games/solitaire/src/main/java/com/vayunmathur/games/solitaire/platform/KlondikeAutoCompleteRun.kt
diff --git a/games/solitaire/src/main/java/com/vayunmathur/games/solitaire/platform/KlondikeAutoCompleteRun.kt b/games/solitaire/src/main/java/com/vayunmathur/games/solitaire/platform/KlondikeAutoCompleteRun.ktindex 25c8b1d8fe..78a372ed07 100644--- a/games/solitaire/src/main/java/com/vayunmathur/games/solitaire/platform/KlondikeAutoCompleteRun.kt+++ b/games/solitaire/src/main/java/com/vayunmathur/games/solitaire/platform/KlondikeAutoCompleteRun.kt@@ -6,15 +6,6 @@ import kotlinx.coroutines.flow.update // ---- Klondike auto-complete: the run on the view model ---- // Planning is pure and lives in KlondikeAutoComplete.kt; this drives it on live state. -/** Instant auto-complete: applies the whole plan in one step (one history entry). */-internal fun SolitaireViewModel.klondikeAutoCompleteImpl() {-    val state = uiStateInternal.value.klondike ?: return-    val finished = planKlondikeAutoComplete(state)?.lastOrNull()?.after ?: return-    saveHistory()-    uiStateInternal.update { it.copy(klondike = finished) }-    checkKlondikeWin()-}- /**  * Animated auto-complete entry: the button tap (and re-tap) lands here. Merely  * offering the button locks nothing; only a started run pauses board input, and