Skip to content

Commit

Permalink
a little clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Dec 12, 2024
1 parent 3ad8176 commit 9c61a78
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
21 changes: 0 additions & 21 deletions crates/rattler_menuinst/src/linux/menu_xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,27 +227,6 @@ impl MenuXml {
}
}

// main function
fn main() {
let menu_config = PathBuf::from("applications.menu");
let system_menu_config = PathBuf::from("system_applications.menu");

let menu_xml = MenuXml::new(
menu_config,
system_menu_config,
"Test Menu".to_string(),
"user".to_string(),
)
.unwrap();
menu_xml.ensure_menu_file().unwrap();

if menu_xml.has_menu().unwrap() {
menu_xml.remove_menu().unwrap();
} else {
menu_xml.add_menu().unwrap();
}
}

#[cfg(test)]
mod tests {
use crate::test::test_data;
Expand Down
6 changes: 0 additions & 6 deletions crates/rattler_menuinst/src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
use std::path::{Path, PathBuf};

pub fn menuinst_data_paths(prefix: &Path) -> Vec<PathBuf> {
vec![prefix.join("share/menuinst")]
}

pub fn quote_args<I, S>(args: I) -> Vec<String>
where
I: IntoIterator<Item = S>,
Expand Down

0 comments on commit 9c61a78

Please sign in to comment.