Skip to content

Commit fc0c753

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 b867d41 commit fc0c753

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/archive.rs

-13
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,6 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
6161
}
6262
}
6363

64-
fn src_files(&mut self) -> Vec<String> {
65-
self.entries.iter().map(|(name, _)| String::from_utf8(name.clone()).unwrap()).collect()
66-
}
67-
68-
fn remove_file(&mut self, name: &str) {
69-
let index = self
70-
.entries
71-
.iter()
72-
.position(|(entry_name, _)| entry_name == name.as_bytes())
73-
.expect("Tried to remove file not existing in src archive");
74-
self.entries.remove(index);
75-
}
76-
7764
fn add_file(&mut self, file: &Path) {
7865
self.entries.push((
7966
file.file_name().unwrap().to_str().unwrap().to_string().into_bytes(),

0 commit comments

Comments
 (0)