diff --git a/src/app/browser/window/tab/item/page/navigation.rs b/src/app/browser/window/tab/item/page/navigation.rs index c0af5924..e25a4128 100644 --- a/src/app/browser/window/tab/item/page/navigation.rs +++ b/src/app/browser/window/tab/item/page/navigation.rs @@ -24,9 +24,6 @@ const SPACING: i32 = 6; pub struct Navigation { profile: Rc, - //home: Button, - //reload: Button, - bookmark: Button, request: Entry, pub g_box: Box, } @@ -64,10 +61,7 @@ impl Navigation { Self { profile: profile.clone(), - //home, request, - //reload, - bookmark, g_box, } } @@ -141,11 +135,6 @@ impl Navigation { self.request.identity(&self.profile) } - pub fn update(&self) { - self.bookmark.update(&self.profile, &self.request); - self.request.update(&self.profile); - } - // Setters pub fn set_request(&self, value: &str) { diff --git a/src/app/browser/window/tab/item/page/search/form.rs b/src/app/browser/window/tab/item/page/search/form.rs index 690221bb..5762ac1d 100644 --- a/src/app/browser/window/tab/item/page/search/form.rs +++ b/src/app/browser/window/tab/item/page/search/form.rs @@ -85,7 +85,6 @@ impl Form { if !this.text().is_empty() { match navigation.forward(subject) { Some((mut start, _)) => { - navigation.update(); result.update(navigation.position(), navigation.total()); scroll_to_iter(&subject.text_view, &mut start) } @@ -130,7 +129,6 @@ impl Form { Some(subject) => { match navigation.back(subject) { Some((mut start, _)) => { - navigation.update(); result.update(navigation.position(), navigation.total()); scroll_to_iter(&subject.text_view, &mut start) } @@ -148,7 +146,6 @@ impl Form { move |_| match subject.borrow().as_ref() { Some(subject) => match navigation.forward(subject) { Some((mut start, _)) => { - navigation.update(); result.update(navigation.position(), navigation.total()); scroll_to_iter(&subject.text_view, &mut start) }