refactor: remove redundant copy method from CompressionEngine implementations

This commit is contained in:
Andrew Phillips (aider)
2025-05-06 11:50:32 -03:00
parent d83d5b4781
commit 8026742a56
4 changed files with 0 additions and 24 deletions

View File

@@ -79,12 +79,6 @@ impl CompressionEngine for CompressionEngineProgram {
Ok(Box::new(process.stdin.unwrap()))
}
fn copy(&self, file_path: PathBuf, writer: &mut dyn Write) -> Result<()> {
let mut reader = self.open(file_path)?;
io::copy(&mut reader, writer)?;
writer.flush()?;
Ok(())
}
}
fn get_program_path(program: &str) -> Result<String> {