remove extra methods

This commit is contained in:
yggverse 2024-11-05 09:57:52 +02:00
parent e025961568
commit ef067fbb70
3 changed files with 1 additions and 9 deletions

View File

@ -88,7 +88,7 @@ impl Navigation {
pub fn update(&self, progress_fraction: Option<f64>) { pub fn update(&self, progress_fraction: Option<f64>) {
self.home.update(self.request.uri()); self.home.update(self.request.uri());
self.history.update(); self.history.update();
self.reload.update(!self.request.is_empty()); self.reload.update(!self.request.text().is_empty());
self.request.update(progress_fraction); self.request.update(progress_fraction);
self.bookmark.update(); self.bookmark.update();
} }

View File

@ -103,10 +103,6 @@ impl Request {
&self.widget.gobject() &self.widget.gobject()
} }
pub fn is_empty(&self) -> bool {
self.widget.is_empty()
}
pub fn text(&self) -> GString { pub fn text(&self) -> GString {
self.widget.text() self.widget.text()
} }

View File

@ -211,10 +211,6 @@ impl Widget {
&self.gobject &self.gobject
} }
pub fn is_empty(&self) -> bool {
0 == self.gobject.text_length()
}
pub fn text(&self) -> GString { pub fn text(&self) -> GString {
self.gobject.text() self.gobject.text()
} }