summaryrefslogtreecommitdiffstats
path: root/native/src/widget/radio.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-22 14:10:49 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-23 21:31:54 +0700
commit1313c94e3bb206f064462bc521f78dbffc2a6cd6 (patch)
treea586436e4a1076543a3205ebc895a8463d9f7ffe /native/src/widget/radio.rs
parent9fe50801537e8fbfd2914f5139b5a609929e25db (diff)
downloadiced-1313c94e3bb206f064462bc521f78dbffc2a6cd6.tar.gz
iced-1313c94e3bb206f064462bc521f78dbffc2a6cd6.tar.bz2
iced-1313c94e3bb206f064462bc521f78dbffc2a6cd6.zip
Remove `hash_layout` method from `Widget` trait
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 c4992764..fed2925b 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>>