From 23def8343dc9401e5393ed0b8fac6c06d1dd230f Mon Sep 17 00:00:00 2001 From: David Bliss Date: Sat, 6 Apr 2024 16:55:20 +0100 Subject: [PATCH] Remove dead code --- src/app.rs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/app.rs b/src/app.rs index 03bafe00..2616e7b5 100644 --- a/src/app.rs +++ b/src/app.rs @@ -81,8 +81,6 @@ pub(super) struct App { // Folder album currently being viewed folder_album: AsyncController, - folder_navigation_view: adw::NavigationView, - // Main navigation. Parent of library stack. main_navigation: adw::OverlaySplitView, @@ -303,8 +301,7 @@ impl SimpleComponent for App { set_icon_name: "sentiment-very-satisfied-symbolic", }, - #[local_ref] - add_child = &folder_navigation_view -> adw::NavigationView { + add_child = &adw::NavigationView { set_pop_on_escape: true, adw::NavigationPage { @@ -449,8 +446,6 @@ impl SimpleComponent for App { let picture_navigation_view = adw::NavigationView::builder().build(); - let folder_navigation_view = adw::NavigationView::builder().build(); - let main_navigation = adw::OverlaySplitView::builder().build(); let main_stack = gtk::Stack::new(); @@ -472,7 +467,6 @@ impl SimpleComponent for App { selfie_photos, folder_photos, folder_album, - folder_navigation_view: folder_navigation_view.clone(), main_navigation: main_navigation.clone(), main_stack: main_stack.clone(), library_view_stack: library_view_stack.clone(), @@ -599,20 +593,6 @@ impl SimpleComponent for App { } } -impl App { - fn filter_all(_: &photos_core::repo::Picture) -> bool { - true - } - - fn filter_none(_: &photos_core::repo::Picture) -> bool { - false - } - - fn filter_is_selfie(pic: &photos_core::repo::Picture) -> bool { - pic.is_selfie - } -} - impl AppWidgets { fn save_window_size(&self) -> Result<(), glib::BoolError> { let settings = gio::Settings::new(APP_ID);