Skip to content

Commit 489d2da

Browse files
committed
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.
1 parent fc70301 commit 489d2da

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/archive.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
7070
}
7171
}
7272

73-
fn src_files(&mut self) -> Vec<String> {
74-
self.entries.iter().map(|(name, _)| name.clone()).collect()
75-
}
76-
77-
fn remove_file(&mut self, name: &str) {
78-
let index = self
79-
.entries
80-
.iter()
81-
.position(|(entry_name, _)| entry_name == name)
82-
.expect("Tried to remove file not existing in src archive");
83-
self.entries.remove(index);
84-
}
85-
8673
fn add_file(&mut self, file: &Path) {
8774
self.entries.push((
8875
file.file_name().unwrap().to_str().unwrap().to_string(),

0 commit comments

Comments
 (0)