From 202cadc29eb86b07c983ecc43a11cfa114ee5409 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 30 May 2019 12:47:35 +0200 Subject: [PATCH] src/bin/proxmox-backup-client.rs: remove unused code --- src/bin/proxmox-backup-client.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index 545c208d..aa0e5655 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -166,32 +166,6 @@ fn backup_image>( 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) -> Vec { let mut result = vec![];