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,7 +1,6 @@
|
||||
package se.hagstedt.kvitt.data.util
|
||||
|
||||
import java.time.Instant
|
||||
import java.time.LocalDate
|
||||
import java.time.ZoneId
|
||||
import java.time.ZoneOffset
|
||||
import java.time.format.DateTimeFormatter
|
||||
@@ -34,5 +33,3 @@ fun Clock.nowTimestamp(): String = Timestamps.format(nowMillis())
|
||||
|
||||
/** Today's date in the phone's zone, `YYYY-MM-DD`. */
|
||||
fun Clock.today(): String = Instant.ofEpochMilli(nowMillis()).atZone(zone()).toLocalDate().toString()
|
||||
|
||||
fun Clock.todayDate(): LocalDate = LocalDate.parse(today())
|
||||
|
||||
Reference in New Issue
Block a user