diff options
Diffstat (limited to 'native/src/widget/slider.rs')
-rw-r--r-- | native/src/widget/slider.rs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs index e41e895d..4c56083e 100644 --- a/native/src/widget/slider.rs +++ b/native/src/widget/slider.rs @@ -7,11 +7,10 @@ use crate::mouse; use crate::renderer; use crate::touch; use crate::{ - Background, Clipboard, Color, Element, Hasher, Layout, Length, Point, - Rectangle, Shell, Size, Widget, + Background, Clipboard, Color, Element, Layout, Length, Point, Rectangle, + Shell, Size, Widget, }; -use std::hash::Hash; use std::ops::RangeInclusive; pub use iced_style::slider::{Handle, HandleShape, Style, StyleSheet}; @@ -344,14 +343,6 @@ pub fn mouse_interaction( } } -/// Hashes the layout of a [`Slider`]. -pub fn hash_layout(state: &mut Hasher, width: Length) { - struct Marker; - std::any::TypeId::of::<Marker>().hash(state); - - width.hash(state); -} - /// The local state of a [`Slider`]. #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] pub struct State { @@ -444,10 +435,6 @@ where ) -> mouse::Interaction { mouse_interaction(layout, cursor_position, &self.state) } - - fn hash_layout(&self, state: &mut Hasher) { - hash_layout(state, self.width) - } } impl<'a, T, Message, Renderer> From<Slider<'a, T, Message>> |