Android overhaul: remove dead code (tokens, an icon, catalogue and fake samples, helpers, unused imports)
Nothing referenced any of these: * :core:design KvittDimens iconMeta, seesawWidth, KEYPAD_COLUMNS, presetMinHeight, navIndicatorWidth/Height; KvittShapes largeIncreased, extraLargeIncreased, extraExtraLarge (the FAB's 20 is `fab`); KvittSpacing navigationBarHeight (ShortNavigationBar draws its own 64 dp); KvittMotion's spatial/effects springs, hero count, bunting stagger, shared-axis, sheet-enter and keypad-swap values (only the seesaw spring is used); the segmentedItem builder and snackbarMillis (KvittSnackbarVisuals maps the duration itself); KvittIcon.Description with its two drawables. * Catalogue sample Samples.renamedGroceries; fake scenarios SettleScenarios.partnerOwes and longAccountIds. * :data Clock.todayDate(). * Unused imports in Common.kt, Settle.kt, Timeline.kt, AnalyticsScenarios.kt, Clock.kt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
-1
@@ -17,7 +17,6 @@ import se.hagstedt.kvitt.model.Measure
|
||||
import se.hagstedt.kvitt.model.RangePreset
|
||||
import se.hagstedt.kvitt.model.Share
|
||||
import se.hagstedt.kvitt.model.SplitMode
|
||||
import se.hagstedt.kvitt.model.UserId
|
||||
|
||||
/**
|
||||
* Scenarios of S-11 (analytics) and S-12 (drill-down), M7e. All share FakeScenarios.empty's household and clock
|
||||
|
||||
@@ -66,15 +66,6 @@ object SettleScenarios {
|
||||
expenses = proposal.expenses + listOf(expense(0xe4, vardag, jacob, 650_000, "2026-10-12")),
|
||||
)
|
||||
|
||||
/** S-9 with the partner owing globally: the direction defaults to "Anna betalar dig". */
|
||||
val partnerOwes: FakeScenario = proposal.copy(
|
||||
expenses = listOf(
|
||||
expense(0xe1, huset, jacob, 616_900, "2026-10-02"),
|
||||
expense(0xe2, japan, jacob, 270_000, "2026-10-05"),
|
||||
expense(0xe3, vardag, anna, 236_900, "2026-10-09"),
|
||||
),
|
||||
)
|
||||
|
||||
/** S-9 offline with pending changes: settling up works unchanged (AC-11.6). */
|
||||
val offline: FakeScenario = proposal.copy(
|
||||
online = false,
|
||||
@@ -162,9 +153,6 @@ object SettleScenarios {
|
||||
),
|
||||
)
|
||||
|
||||
/** The long scenario's accounts in created order. */
|
||||
val longAccountIds: List<AccountId> = longAccounts.map { it.id }
|
||||
|
||||
private fun id(suffix: Int): String = "01920000-0000-7000-8000-" + suffix.toString(16).padStart(12, '0')
|
||||
|
||||
private fun account(suffix: Int, name: String, createdAt: String, archived: Boolean = false): Account =
|
||||
|
||||
Reference in New Issue
Block a user