From 5d301e5dbf7279115ffff24664a18a735522e33e Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 3 Sep 2025 11:21:04 -0300 Subject: [PATCH] fix: Remove unused build_compression_table function Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/modes/status.rs | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/modes/status.rs b/src/modes/status.rs index b0a32cf..0650fb7 100644 --- a/src/modes/status.rs +++ b/src/modes/status.rs @@ -45,44 +45,6 @@ fn build_path_table(path_info: &PathInfo) -> Table { path_table } -fn build_compression_table(compression_info: &Vec) -> Table { - let mut compression_table = Table::new(); - if std::io::stdout().is_terminal() { - compression_table.set_format(get_format_box_chars_no_border_line_separator()); - } else { - compression_table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR); - } - - compression_table.set_titles(row!( - b->"Type", - b->"Found", - b->"Enabled", - b->"Binary", - b->"Compress", - b->"Decompress")); - - for info in compression_info { - compression_table.add_row(Row::new(vec![ - Cell::new(&info.compression_type), - match info.found { - true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)), - false => Cell::new("No").with_style(Attr::ForegroundColor(color::RED)), - }, - match info.default { - true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)), - false => Cell::new("No"), - }, - match info.binary.as_str() { - "" => Cell::new(&info.binary).with_style(Attr::ForegroundColor(color::BRIGHT_BLACK)), - _ => Cell::new(&info.binary), - }, - Cell::new(&info.compress), - Cell::new(&info.decompress), - ])); - } - - compression_table -} fn build_config_table(settings: &config::Settings) -> Table { let mut config_table = Table::new();