chore(cleanup): delete confirmed-dead files with no live references
Removes 6 files audited as fully unused: StageExecutor interface (shadowed by kernel), CyclePolicyResolver and PolicyValidation (deferred cycle policy), ApprovalRoutes (never registered), TuiNavigation (superseded by reducer), and ReplayContractTest abstract class (no concrete subclasses). ArtifactRelationshipType and CyclePolicy were audited but retained — both are actively referenced by production code.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
package com.correx.apps.tui
|
||||
|
||||
import com.correx.apps.tui.state.TuiState
|
||||
|
||||
internal fun navigateUp(state: TuiState): TuiState {
|
||||
val sessions = state.sessions.sessions
|
||||
if (sessions.isEmpty()) return state
|
||||
val idx = sessions.indexOfFirst { it.id == state.sessions.selectedId }
|
||||
val newIdx = if (idx <= 0) sessions.lastIndex else idx - 1
|
||||
return state.copy(sessions = state.sessions.copy(selectedId = sessions[newIdx].id))
|
||||
}
|
||||
|
||||
internal fun navigateDown(state: TuiState): TuiState {
|
||||
val sessions = state.sessions.sessions
|
||||
if (sessions.isEmpty()) return state
|
||||
val idx = sessions.indexOfFirst { it.id == state.sessions.selectedId }
|
||||
val newIdx = if (idx >= sessions.lastIndex) 0 else idx + 1
|
||||
return state.copy(sessions = state.sessions.copy(selectedId = sessions[newIdx].id))
|
||||
}
|
||||
Reference in New Issue
Block a user