chore: remove unused dependencies and dead code

Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-07-29 14:53:07 -03:00
parent 6b34f2e226
commit 52618586d1
4 changed files with 0 additions and 42 deletions

View File

@@ -40,7 +40,6 @@ sha2 = "0.10.0"
local-ip-address = "0.5.5" local-ip-address = "0.5.5"
dns-lookup = "2.0.2" dns-lookup = "2.0.2"
uzers = "0.11.3" uzers = "0.11.3"
isatty = "0.1.9"
[dev-dependencies] [dev-dependencies]
tempfile = "3.3.0" tempfile = "3.3.0"

View File

@@ -94,21 +94,3 @@ impl CompressionEngine for CompressionEngineProgram {
Ok(Box::new(process.stdin.unwrap())) Ok(Box::new(process.stdin.unwrap()))
} }
} }
fn get_program_path(program: &str) -> Result<String> {
debug!("COMPRESSION: Looking for executable: {}", program);
if let Ok(path) = env::var("PATH") {
for p in path.split(':') {
let p_str = format!("{}/{}", p, program);
let stat = fs::metadata(p_str.clone());
if let Ok(stat) = stat {
let md = stat;
let permissions = md.permissions();
if md.is_file() && permissions.mode() & 0o111 != 0 {
return Ok(p_str);
}
}
}
}
Err(anyhow!("Unable to find binary {} in PATH", program))
}

View File

@@ -26,27 +26,6 @@ pub mod meta_plugin;
extern crate term; extern crate term;
lazy_static! {
static ref FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR: TableFormat =
format::FormatBuilder::new()
.column_separator('│')
.borders('│')
.separators(
&[format::LinePosition::Top],
format::LineSeparator::new('─', '┬', '┌', '┐')
)
.separators(
&[format::LinePosition::Title],
format::LineSeparator::new('─', '┼', '├', '┤')
)
.separators(
&[format::LinePosition::Bottom],
format::LineSeparator::new('─', '┴', '└', '┘')
)
.padding(1, 1)
.build();
}
/** /**
* Main struct for command-line arguments. * Main struct for command-line arguments.
*/ */

View File

@@ -167,5 +167,3 @@ pub fn mode_list(
Ok(()) Ok(())
} }
// These helper functions are needed for the mode_list function