about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-06-14 15:11:14 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-06-14 15:11:14 +0000
commit489d2daec0c595a3598212db7ff3d95524175464 (patch)
tree2024c94b64cfe59660946253ae9d63239e2220bc
parentfc7030130e8f68fa75f9b54fba71b6e884eb4250 (diff)
downloadrust-489d2daec0c595a3598212db7ff3d95524175464.tar.gz
rust-489d2daec0c595a3598212db7ff3d95524175464.zip
Remove src_files and remove_file
They only apply to the main source archive and their role can be
fulfilled through the skip argument of add_archive too.
-rw-r--r--src/archive.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/archive.rs b/src/archive.rs
index fac532f3e9c..1975035ae20 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -70,19 +70,6 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
         }
     }
 
-    fn src_files(&mut self) -> Vec<String> {
-        self.entries.iter().map(|(name, _)| name.clone()).collect()
-    }
-
-    fn remove_file(&mut self, name: &str) {
-        let index = self
-            .entries
-            .iter()
-            .position(|(entry_name, _)| entry_name == name)
-            .expect("Tried to remove file not existing in src archive");
-        self.entries.remove(index);
-    }
-
     fn add_file(&mut self, file: &Path) {
         self.entries.push((
             file.file_name().unwrap().to_str().unwrap().to_string(),