diff --git a/src/ui/layout/components/file_list.rs b/src/ui/layout/components/file_list.rs index 3dd1ada..a7642fd 100644 --- a/src/ui/layout/components/file_list.rs +++ b/src/ui/layout/components/file_list.rs @@ -259,15 +259,6 @@ impl Component for FileList { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - fn should_umount(&self) -> bool { - // Never true - false - } - /// ### blur /// /// Blur component; basically remove focus @@ -314,8 +305,6 @@ mod tests { // Increment list index component.states.list_index += 1; assert_eq!(component.render().unwrap().cursor, 1); - // Should umount - assert_eq!(component.should_umount(), false); // Update component.update( component diff --git a/src/ui/layout/components/input.rs b/src/ui/layout/components/input.rs index 05ef56e..a2ec745 100644 --- a/src/ui/layout/components/input.rs +++ b/src/ui/layout/components/input.rs @@ -282,15 +282,6 @@ impl Component for Input { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - /// This component never umounts - fn should_umount(&self) -> bool { - false - } - /// ### blur /// /// Blur component; basically remove focus @@ -332,8 +323,6 @@ mod tests { assert_eq!(component.states.focus, true); component.blur(); assert_eq!(component.states.focus, false); - // Should umount - assert_eq!(component.should_umount(), false); // Get value assert_eq!(component.get_value(), Payload::Text(String::from("home"))); // Render diff --git a/src/ui/layout/components/logbox.rs b/src/ui/layout/components/logbox.rs index 571a14d..c1d207c 100644 --- a/src/ui/layout/components/logbox.rs +++ b/src/ui/layout/components/logbox.rs @@ -267,15 +267,6 @@ impl Component for LogBox { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - fn should_umount(&self) -> bool { - // Never true - false - } - /// ### blur /// /// Blur component; basically remove focus @@ -327,8 +318,6 @@ mod tests { // Increment list index component.states.list_index -= 1; assert_eq!(component.render().unwrap().cursor, 0); - // Should umount - assert_eq!(component.should_umount(), false); // Update component.update( component diff --git a/src/ui/layout/components/progress_bar.rs b/src/ui/layout/components/progress_bar.rs index f45e3ca..d46f948 100644 --- a/src/ui/layout/components/progress_bar.rs +++ b/src/ui/layout/components/progress_bar.rs @@ -154,15 +154,6 @@ impl Component for ProgressBar { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - /// Always false for this component - fn should_umount(&self) -> bool { - false - } - /// ### blur /// /// Blur component @@ -202,8 +193,6 @@ mod tests { assert_eq!(component.states.focus, true); component.blur(); assert_eq!(component.states.focus, false); - // Should umount - assert_eq!(component.should_umount(), false); // Get value assert_eq!(component.get_value(), Payload::None); // Render diff --git a/src/ui/layout/components/radio_group.rs b/src/ui/layout/components/radio_group.rs index abe7e78..e304e7d 100644 --- a/src/ui/layout/components/radio_group.rs +++ b/src/ui/layout/components/radio_group.rs @@ -237,15 +237,6 @@ impl Component for RadioGroup { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - /// Always false for this component - fn should_umount(&self) -> bool { - false - } - /// ### blur /// /// Blur component; basically remove focus @@ -294,8 +285,6 @@ mod tests { assert_eq!(component.states.focus, true); component.blur(); assert_eq!(component.states.focus, false); - // Should umount - assert_eq!(component.should_umount(), false); // Get value assert_eq!(component.get_value(), Payload::Unsigned(1)); // Render diff --git a/src/ui/layout/components/table.rs b/src/ui/layout/components/table.rs index 2b334ce..b617de0 100644 --- a/src/ui/layout/components/table.rs +++ b/src/ui/layout/components/table.rs @@ -167,15 +167,6 @@ impl Component for Table { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - /// Always false for this component - fn should_umount(&self) -> bool { - false - } - /// ### blur /// /// Blur component @@ -221,8 +212,6 @@ mod tests { assert_eq!(component.states.focus, true); component.blur(); assert_eq!(component.states.focus, false); - // Should umount - assert_eq!(component.should_umount(), false); // Get value assert_eq!(component.get_value(), Payload::None); // Render diff --git a/src/ui/layout/components/text.rs b/src/ui/layout/components/text.rs index cf61306..356ac0a 100644 --- a/src/ui/layout/components/text.rs +++ b/src/ui/layout/components/text.rs @@ -150,15 +150,6 @@ impl Component for Text { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - /// Always false for this component - fn should_umount(&self) -> bool { - false - } - /// ### blur /// /// Blur component @@ -206,8 +197,6 @@ mod tests { assert_eq!(component.states.focus, true); component.blur(); assert_eq!(component.states.focus, false); - // Should umount - assert_eq!(component.should_umount(), false); // Get value assert_eq!(component.get_value(), Payload::None); // Render diff --git a/src/ui/layout/mod.rs b/src/ui/layout/mod.rs index 5bacf2c..e3f962e 100644 --- a/src/ui/layout/mod.rs +++ b/src/ui/layout/mod.rs @@ -111,12 +111,6 @@ pub trait Component { // -- events - /// ### should_umount - /// - /// The component must provide to the supervisor whether it should be umounted (destroyed) - /// This makes sense to be called after an `on` or after an `update`, where the states changes. - fn should_umount(&self) -> bool; - /// ### blur /// /// Blur component; basically remove focus