diff --git a/Cargo.toml b/Cargo.toml index 44a90d6..553b1d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/compression_engine/program.rs b/src/compression_engine/program.rs index fda5dee..bcc889d 100644 --- a/src/compression_engine/program.rs +++ b/src/compression_engine/program.rs @@ -94,21 +94,3 @@ impl CompressionEngine for CompressionEngineProgram { Ok(Box::new(process.stdin.unwrap())) } } - -fn get_program_path(program: &str) -> Result { - 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)) -} diff --git a/src/main.rs b/src/main.rs index 50eb193..94ddd0e 100644 --- a/src/main.rs +++ b/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. */ diff --git a/src/modes/list.rs b/src/modes/list.rs index 43e897f..ea749e3 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -167,5 +167,3 @@ pub fn mode_list( Ok(()) } - -// These helper functions are needed for the mode_list function