Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Apr 6, 2024
1 parent 96e45ef commit 23def83
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ pub(super) struct App {
// Folder album currently being viewed
folder_album: AsyncController<Album>,

folder_navigation_view: adw::NavigationView,

// Main navigation. Parent of library stack.
main_navigation: adw::OverlaySplitView,

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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();
Expand All @@ -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(),
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 23def83

Please sign in to comment.