mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
remove extra methods
This commit is contained in:
parent
e025961568
commit
ef067fbb70
@ -88,7 +88,7 @@ impl Navigation {
|
||||
pub fn update(&self, progress_fraction: Option<f64>) {
|
||||
self.home.update(self.request.uri());
|
||||
self.history.update();
|
||||
self.reload.update(!self.request.is_empty());
|
||||
self.reload.update(!self.request.text().is_empty());
|
||||
self.request.update(progress_fraction);
|
||||
self.bookmark.update();
|
||||
}
|
||||
|
@ -103,10 +103,6 @@ impl Request {
|
||||
&self.widget.gobject()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.widget.is_empty()
|
||||
}
|
||||
|
||||
pub fn text(&self) -> GString {
|
||||
self.widget.text()
|
||||
}
|
||||
|
@ -211,10 +211,6 @@ impl Widget {
|
||||
&self.gobject
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
0 == self.gobject.text_length()
|
||||
}
|
||||
|
||||
pub fn text(&self) -> GString {
|
||||
self.gobject.text()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user