remove duplicate method

This commit is contained in:
steven-omaha
2023-02-01 13:04:05 +01:00
parent 5308909708
commit 468f792909
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -50,6 +50,7 @@ impl ToDoPerBackend {
if packages.is_empty() {
continue;
}
let exit_status = func(&**backend, packages).with_context(|| {
format!("{verb_continuous} packages for {}", backend.get_binary())
})?;
@@ -62,10 +63,6 @@ impl ToDoPerBackend {
Ok(())
}
pub(crate) fn is_empty(&self) -> bool {
self.0.iter().all(|(_, packages)| packages.is_empty())
}
pub(crate) fn show(&self, keyword: Option<&str>) {
for (backend, packages) in self.iter() {
if packages.is_empty() {
+1 -1
View File
@@ -172,7 +172,7 @@ impl Pacdef {
fn clean_packages(mut self) -> Result<()> {
let to_remove = self.get_unmanaged_packages();
if to_remove.is_empty() {
if to_remove.nothing_to_do_for_all_backends() {
println!("nothing to do");
return Ok(());
}