diff --git a/crates/pacdef_core/src/backend/backend_trait.rs b/crates/pacdef_core/src/backend/backend_trait.rs index 6818358..62a1015 100644 --- a/crates/pacdef_core/src/backend/backend_trait.rs +++ b/crates/pacdef_core/src/backend/backend_trait.rs @@ -104,18 +104,6 @@ pub trait Backend: Debug { .with_context(|| format!("running command [{cmd:?}]")) } - /// TODO remove. - fn extract_packages_from_group_file_content(&self, content: &str) -> HashSet { - content - .lines() - .skip_while(|line| !line.starts_with(&format!("[{}]", self.get_section()))) - .skip(1) - .filter(|line| !line.starts_with('[')) - .fuse() - .filter_map(Package::try_from) - .collect() - } - /// Get missing packages, sorted alphabetically. fn get_missing_packages_sorted(&self) -> Result> { let installed = self @@ -127,9 +115,6 @@ pub trait Backend: Debug { Ok(diff) } - /// TODO remove - fn add_packages(&mut self, packages: HashSet); - /// Show information from package manager for package. fn show_package_info(&self, package: &Package) -> Result { let mut cmd = Command::new(self.get_binary()); diff --git a/crates/pacdef_core/src/backend/macros.rs b/crates/pacdef_core/src/backend/macros.rs index f2983eb..5051519 100644 --- a/crates/pacdef_core/src/backend/macros.rs +++ b/crates/pacdef_core/src/backend/macros.rs @@ -44,12 +44,6 @@ macro_rules! impl_backend_constants { }) } - fn add_packages(&mut self, packages: HashSet) { - for p in packages { - self.packages.insert(p); - } - } - fn as_any_mut(&mut self) -> &mut dyn std::any::Any { self }