Remove the unused TUI shutdown app command (#34553)

Remove the unconstructed `AppCommand::Shutdown` variant, its helper, and its
pending interactive replay handling.

GitOrigin-RevId: 25e8ac7ebf2498a7d70ad1625d363395a9c6f578
This commit is contained in:
jif authored and copyberry committed 2026-07-21 14:25:18 +00:00
1 parent 4c2dc5d285
commit 40a719238c
2 files changed
-8

No files matched your search

@@ -82,7 +82,6 @@ impl PendingInteractiveReplayState {
| AppCommand::ResolveElicitation { .. } | AppCommand::ResolveElicitation { .. }
| AppCommand::RequestPermissionsResponse { .. } | AppCommand::RequestPermissionsResponse { .. }
| AppCommand::UserInputAnswer { .. } | AppCommand::UserInputAnswer { .. }
| AppCommand::Shutdown
) )
} }
@@ -164,7 +163,6 @@ impl PendingInteractiveReplayState {
self.request_user_input_call_ids_by_turn_id.remove(id); self.request_user_input_call_ids_by_turn_id.remove(id);
} }
} }
AppCommand::Shutdown => self.clear(),
_ => {} _ => {}
} }
} }
-6
View File
@@ -90,7 +90,6 @@ pub(crate) enum AppCommand {
SetThreadName { SetThreadName {
name: String, name: String,
}, },
Shutdown,
Review { Review {
target: ReviewTarget, target: ReviewTarget,
}, },
@@ -232,11 +231,6 @@ impl AppCommand {
Self::SetThreadName { name } Self::SetThreadName { name }
} }
#[allow(dead_code)]
pub(crate) fn shutdown() -> Self {
Self::Shutdown
}
pub(crate) fn review(target: ReviewTarget) -> Self { pub(crate) fn review(target: ReviewTarget) -> Self {
Self::Review { target } Self::Review { target }
} }