mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
remove dead code
This commit is contained in:
@@ -6,6 +6,7 @@ use ratatui::text::Line;
|
||||
use crate::slash_command::SlashCommand;
|
||||
use crate::at_command::AtCommand;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub(crate) enum AppEvent {
|
||||
CodexEvent(Event),
|
||||
|
||||
@@ -22,7 +22,6 @@ mod status_indicator_view;
|
||||
|
||||
pub(crate) use chat_composer::ChatComposer;
|
||||
pub(crate) use chat_composer::InputResult;
|
||||
pub(crate) use command_popup::CommandInfo;
|
||||
|
||||
use approval_modal_view::ApprovalModalView;
|
||||
use status_indicator_view::StatusIndicatorView;
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
use crate::slash_command::SlashCommand;
|
||||
use crate::at_command::AtCommand;
|
||||
use crate::bottom_pane::CommandInfo;
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub enum Command {
|
||||
Slash(SlashCommand),
|
||||
At(AtCommand),
|
||||
}
|
||||
|
||||
impl CommandInfo for Command {
|
||||
fn command(&self) -> &'static str {
|
||||
match self { Command::Slash(s) => s.command(), Command::At(a) => a.command() }
|
||||
}
|
||||
fn description(&self) -> &'static str {
|
||||
match self { Command::Slash(s) => s.description(), Command::At(a) => a.description() }
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,6 @@ mod tui;
|
||||
mod user_approval_widget;
|
||||
mod clipboard_paste;
|
||||
mod at_command;
|
||||
mod command;
|
||||
|
||||
pub use cli::Cli;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user