src/bin/proxmox-backup-client.rs: remove unused code

This commit is contained in:
Dietmar Maurer 2019-05-30 12:47:35 +02:00
parent 6af905c18f
commit 202cadc29e
1 changed files with 0 additions and 26 deletions

View File

@ -166,32 +166,6 @@ fn backup_image<P: AsRef<Path>>(
Ok(()) Ok(())
} }
/****
fn backup_image(datastore: &DataStore, file: &std::fs::File, size: usize, target: &str, chunk_size: usize) -> Result<(), Error> {
let mut target = PathBuf::from(target);
if let Some(ext) = target.extension() {
if ext != "fidx" {
bail!("got wrong file extension - expected '.fidx'");
}
} else {
target.set_extension("fidx");
}
let mut index = datastore.create_image_writer(&target, size, chunk_size)?;
tools::file_chunker(file, chunk_size, |pos, chunk| {
index.add_chunk(pos, chunk)?;
Ok(true)
})?;
index.close()?; // commit changes
Ok(())
}
*/
fn strip_chunked_file_expenstions(list: Vec<String>) -> Vec<String> { fn strip_chunked_file_expenstions(list: Vec<String>) -> Vec<String> {
let mut result = vec![]; let mut result = vec![];