From 2d5c20c8f598a609c91ae33ab3ee1bfdf5465bd2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 20 Apr 2022 09:58:12 +0200 Subject: [PATCH] datastore: remove unused list_files function it also doesn't belong into this type Signed-off-by: Wolfgang Bumiller --- pbs-datastore/src/backup_info.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pbs-datastore/src/backup_info.rs b/pbs-datastore/src/backup_info.rs index d6c67b73..ccedb250 100644 --- a/pbs-datastore/src/backup_info.rs +++ b/pbs-datastore/src/backup_info.rs @@ -386,15 +386,6 @@ impl BackupInfo { } } - pub fn list_files(base_path: &Path, backup_dir: &BackupDir) -> Result, Error> { - let mut path = base_path.to_owned(); - path.push(backup_dir.relative_path()); - - let files = list_backup_files(libc::AT_FDCWD, &path)?; - - Ok(files) - } - pub fn is_finished(&self) -> bool { // backup is considered unfinished if there is no manifest self.files.iter().any(|name| name == MANIFEST_BLOB_NAME)