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:
@@ -40,7 +40,6 @@ sha2 = "0.10.0"
|
||||
local-ip-address = "0.5.5"
|
||||
dns-lookup = "2.0.2"
|
||||
uzers = "0.11.3"
|
||||
isatty = "0.1.9"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.3.0"
|
||||
|
||||
@@ -94,21 +94,3 @@ impl CompressionEngine for CompressionEngineProgram {
|
||||
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))
|
||||
}
|
||||
|
||||
21
src/main.rs
21
src/main.rs
@@ -26,27 +26,6 @@ pub mod meta_plugin;
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
@@ -167,5 +167,3 @@ pub fn mode_list(
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// These helper functions are needed for the mode_list function
|
||||
|
||||
Reference in New Issue
Block a user