From 2464ae68c9fbee0a1c4504b836e148e8036feeb3 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Wed, 18 Dec 2024 10:31:06 +0100 Subject: [PATCH] refactor: Remove now unused `TransferDetailsDestination` --- .../swisstransfer/ui/navigation/NavigationDestination.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/navigation/NavigationDestination.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/navigation/NavigationDestination.kt index 394acafc9..d63d7e5a4 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/navigation/NavigationDestination.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/navigation/NavigationDestination.kt @@ -57,9 +57,6 @@ sealed class MainNavigation : NavigationDestination() { } } - @Serializable - data class TransferDetailsDestination(val transferUuid: String) : MainNavigation() - @Serializable data object SettingsDestination : MainNavigation() @@ -70,7 +67,6 @@ sealed class MainNavigation : NavigationDestination() { val entries = listOf( SentDestination::class, ReceivedDestination::class, - TransferDetailsDestination::class, SettingsDestination::class, ) @@ -80,7 +76,6 @@ sealed class MainNavigation : NavigationDestination() { when (entries.firstOrNull { destinationRoute.contains(it.qualifiedName.toString()) }) { SentDestination::class -> this.toRoute() ReceivedDestination::class -> this.toRoute() - TransferDetailsDestination::class -> this.toRoute() SettingsDestination::class -> this.toRoute() else -> error("Destination $destinationRoute is not handled") }