remove impl_backend_constants parameter

was unused
This commit is contained in:
steven-omaha
2023-01-10 12:07:39 +01:00
parent 02116b1f16
commit 832b94e2dc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#[macro_export] #[macro_export]
macro_rules! impl_backend_constants { macro_rules! impl_backend_constants {
($name:ident) => { () => {
fn get_binary(&self) -> Text { fn get_binary(&self) -> Text {
BINARY BINARY
} }
+1 -1
View File
@@ -16,7 +16,7 @@ const SWITCHES_INSTALL: Switches = &["-S"];
const SWITCHES_REMOVE: Switches = &["-Rsn"]; const SWITCHES_REMOVE: Switches = &["-Rsn"];
impl Backend for Pacman { impl Backend for Pacman {
impl_backend_constants!(Pacman); impl_backend_constants!();
fn get_all_installed_packages(&self) -> HashSet<Package> { fn get_all_installed_packages(&self) -> HashSet<Package> {
convert_to_pacdef_packages(get_all_installed_packages_from_alpm()) convert_to_pacdef_packages(get_all_installed_packages_from_alpm())
+1 -1
View File
@@ -13,7 +13,7 @@ const SWITCHES_INSTALL: Switches = &["install"];
const SWITCHES_REMOVE: Switches = &["uninstall"]; const SWITCHES_REMOVE: Switches = &["uninstall"];
impl Backend for Rust { impl Backend for Rust {
impl_backend_constants!(Rust); impl_backend_constants!();
fn get_all_installed_packages(&self) -> HashSet<Package> { fn get_all_installed_packages(&self) -> HashSet<Package> {
extract_packages_names(&run_cargo_install_list()) extract_packages_names(&run_cargo_install_list())