summaryrefslogtreecommitdiffstats
path: root/native/src/widget/space.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/space.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/space.rs')
-rw-r--r--native/src/widget/space.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/native/src/widget/space.rs b/native/src/widget/space.rs
index 3373f3b7..4135d1b8 100644
--- a/native/src/widget/space.rs
+++ b/native/src/widget/space.rs
@@ -1,9 +1,7 @@
//! Distribute content vertically.
use crate::layout;
use crate::renderer;
-use crate::{Element, Hasher, Layout, Length, Point, Rectangle, Size, Widget};
-
-use std::hash::Hash;
+use crate::{Element, Layout, Length, Point, Rectangle, Size, Widget};
/// An amount of empty space.
///
@@ -68,13 +66,6 @@ where
_viewport: &Rectangle,
) {
}
-
- fn hash_layout(&self, state: &mut Hasher) {
- std::any::TypeId::of::<Space>().hash(state);
-
- self.width.hash(state);
- self.height.hash(state);
- }
}
impl<'a, Message, Renderer> From<Space> for Element<'a, Message, Renderer>