summaryrefslogtreecommitdiffstats
path: root/native/src/widget/radio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/radio.rs')
-rw-r--r--native/src/widget/radio.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs
index 862afd29..657ae786 100644
--- a/native/src/widget/radio.rs
+++ b/native/src/widget/radio.rs
@@ -1,6 +1,4 @@
//! Create choices using radio buttons.
-use std::hash::Hash;
-
use crate::alignment;
use crate::event::{self, Event};
use crate::layout;
@@ -10,8 +8,8 @@ use crate::text;
use crate::touch;
use crate::widget::{self, Row, Text};
use crate::{
- Alignment, Clipboard, Color, Element, Hasher, Layout, Length, Point,
- Rectangle, Shell, Widget,
+ Alignment, Clipboard, Color, Element, Layout, Length, Point, Rectangle,
+ Shell, Widget,
};
pub use iced_style::radio::{Style, StyleSheet};
@@ -280,13 +278,6 @@ where
);
}
}
-
- fn hash_layout(&self, state: &mut Hasher) {
- struct Marker;
- std::any::TypeId::of::<Marker>().hash(state);
-
- self.label.hash(state);
- }
}
impl<'a, Message, Renderer> From<Radio<'a, Message, Renderer>>