Skip to content

Commit 5313f35

Browse files
committed
Remove unused onLogoutForNativeSlidingSyncMigrationNeeded() method and cleanup dead code.
1 parent c6c1c32 commit 5313f35

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

appnav/src/main/kotlin/io/element/android/appnav/LoggedInFlowNode.kt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import io.element.android.features.ftue.api.FtueEntryPoint
5252
import io.element.android.features.ftue.api.state.FtueService
5353
import io.element.android.features.ftue.api.state.FtueState
5454
import io.element.android.features.home.api.HomeEntryPoint
55-
import io.element.android.features.logout.api.LogoutEntryPoint
5655
import io.element.android.features.networkmonitor.api.NetworkMonitor
5756
import io.element.android.features.networkmonitor.api.NetworkStatus
5857
import io.element.android.features.preferences.api.PreferencesEntryPoint
@@ -118,7 +117,6 @@ class LoggedInFlowNode(
118117
private val shareEntryPoint: ShareEntryPoint,
119118
private val matrixClient: MatrixClient,
120119
private val sendingQueue: SendQueues,
121-
private val logoutEntryPoint: LogoutEntryPoint,
122120
private val incomingVerificationEntryPoint: IncomingVerificationEntryPoint,
123121
private val mediaPreviewConfigMigration: MediaPreviewConfigMigration,
124122
private val sessionEnterpriseService: SessionEnterpriseService,
@@ -276,9 +274,6 @@ class LoggedInFlowNode(
276274
@Parcelize
277275
data class IncomingShare(val intent: Intent) : NavTarget
278276

279-
@Parcelize
280-
data object LogoutForNativeSlidingSyncMigrationNeeded : NavTarget
281-
282277
@Parcelize
283278
data class IncomingVerificationRequest(val data: VerificationRequest.Incoming) : NavTarget
284279
}
@@ -323,10 +318,6 @@ class LoggedInFlowNode(
323318
override fun onReportBugClick() {
324319
plugins<Callback>().forEach { it.onOpenBugReport() }
325320
}
326-
327-
override fun onLogoutForNativeSlidingSyncMigrationNeeded() {
328-
backstack.push(NavTarget.LogoutForNativeSlidingSyncMigrationNeeded)
329-
}
330321
}
331322
homeEntryPoint
332323
.nodeBuilder(this, buildContext)
@@ -480,17 +471,6 @@ class LoggedInFlowNode(
480471
.params(ShareEntryPoint.Params(intent = navTarget.intent))
481472
.build()
482473
}
483-
is NavTarget.LogoutForNativeSlidingSyncMigrationNeeded -> {
484-
val callback = object : LogoutEntryPoint.Callback {
485-
override fun onChangeRecoveryKeyClick() {
486-
backstack.push(NavTarget.SecureBackup())
487-
}
488-
}
489-
490-
logoutEntryPoint.nodeBuilder(this, buildContext)
491-
.callback(callback)
492-
.build()
493-
}
494474
is NavTarget.IncomingVerificationRequest -> {
495475
incomingVerificationEntryPoint.nodeBuilder(this, buildContext)
496476
.params(IncomingVerificationEntryPoint.Params(navTarget.data))

features/home/api/src/main/kotlin/io/element/android/features/home/api/HomeEntryPoint.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ interface HomeEntryPoint : FeatureEntryPoint {
2828
fun onSessionConfirmRecoveryKeyClick()
2929
fun onRoomSettingsClick(roomId: RoomId)
3030
fun onReportBugClick()
31-
fun onLogoutForNativeSlidingSyncMigrationNeeded()
3231
}
3332
}

0 commit comments

Comments
 (0)