We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b867d41 commit fc0c753Copy full SHA for fc0c753
src/archive.rs
@@ -61,19 +61,6 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
61
}
62
63
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
77
fn add_file(&mut self, file: &Path) {
78
self.entries.push((
79
file.file_name().unwrap().to_str().unwrap().to_string().into_bytes(),
0 commit comments