mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
remove deprecation feature methods
This commit is contained in:
parent
560adff490
commit
f9365791e6
4 changed files with 10 additions and 40 deletions
|
|
@ -355,7 +355,7 @@ fn update_secondary_icon(entry: &Entry, info: &Info) {
|
|||
entry.set_secondary_icon_name(Some("pan-end-symbolic"));
|
||||
entry.set_secondary_icon_tooltip_text(Some("Go to the location"))
|
||||
} else {
|
||||
if !info.is_deprecated() && info.matches(&entry.text()) {
|
||||
if info.matches(&entry.text()) {
|
||||
entry.set_secondary_icon_name(Some("help-about-symbolic"));
|
||||
entry.set_secondary_icon_tooltip_text(Some("Page info"));
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -19,9 +19,6 @@ pub struct Info {
|
|||
/// Hold optional header string to dump it in the info dialog
|
||||
/// and calculate total size
|
||||
header: Option<String>,
|
||||
/// Mark holder as deprecated on handle begin
|
||||
/// * useful on some driver does not update status properly
|
||||
is_deprecated: bool,
|
||||
/// Page content type
|
||||
mime: Option<String>,
|
||||
/// Hold redirections chain with handled details
|
||||
|
|
@ -44,7 +41,6 @@ impl Info {
|
|||
Self {
|
||||
event: Vec::with_capacity(50), // estimated max events quantity for all drivers
|
||||
header: None,
|
||||
is_deprecated: false,
|
||||
mime: None,
|
||||
redirect: None,
|
||||
request: None,
|
||||
|
|
@ -76,18 +72,6 @@ impl Info {
|
|||
PreferencesDialog::info(profile, self).present(Some(parent))
|
||||
}
|
||||
|
||||
/// Actualize `Self`
|
||||
pub fn commit(&mut self) {
|
||||
self.is_deprecated = false;
|
||||
}
|
||||
|
||||
/// Mark `Self` as deprecated
|
||||
/// * tip: usually called on page load begin,
|
||||
/// to prevent driver implementation mistakes
|
||||
pub fn deprecate(&mut self) {
|
||||
self.is_deprecated = true;
|
||||
}
|
||||
|
||||
// Setters
|
||||
// * update `Self` in chain
|
||||
|
||||
|
|
@ -149,10 +133,6 @@ impl Info {
|
|||
pub fn matches(&self, request: &str) -> bool {
|
||||
self.request.as_ref().is_some_and(|r| r == request)
|
||||
}
|
||||
|
||||
pub fn is_deprecated(&self) -> bool {
|
||||
self.is_deprecated
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Info {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue