diff options
author | 2022-03-07 15:29:43 +0700 | |
---|---|---|
committer | 2022-03-07 15:29:43 +0700 | |
commit | c35496d80fc542c9beeea39dec98eb5cdef07aaa (patch) | |
tree | 62f28fabf631f33a1a94fb25fa076b44140adbe4 /pure/src/widget/container.rs | |
parent | 820d332736205c7485d08352841b705205130f38 (diff) | |
parent | af7cbf0003496d757696ea6e15ea32f0649cf8f9 (diff) | |
download | iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.tar.gz iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.tar.bz2 iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.zip |
Merge branch 'master' into virtual-widgets
Diffstat (limited to 'pure/src/widget/container.rs')
-rw-r--r-- | pure/src/widget/container.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/pure/src/widget/container.rs b/pure/src/widget/container.rs index c8f0b3a2..ebf69cab 100644 --- a/pure/src/widget/container.rs +++ b/pure/src/widget/container.rs @@ -9,10 +9,9 @@ use iced_native::overlay; use iced_native::renderer; use iced_native::widget::container; use iced_native::{ - Clipboard, Hasher, Layout, Length, Padding, Point, Rectangle, Shell, + Clipboard, Layout, Length, Padding, Point, Rectangle, Shell, }; -use std::hash::Hash; use std::u32; pub use iced_style::container::{Style, StyleSheet}; @@ -224,21 +223,6 @@ where ); } - fn hash_layout(&self, state: &mut Hasher) { - struct Marker; - std::any::TypeId::of::<Marker>().hash(state); - - self.padding.hash(state); - self.width.hash(state); - self.height.hash(state); - self.max_width.hash(state); - self.max_height.hash(state); - self.horizontal_alignment.hash(state); - self.vertical_alignment.hash(state); - - self.content.as_widget().hash_layout(state); - } - fn overlay<'b>( &'b self, tree: &'b mut Tree, |