summaryrefslogtreecommitdiffstats
path: root/lazy/src/component.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-03-07 15:29:43 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-03-07 15:29:43 +0700
commitc35496d80fc542c9beeea39dec98eb5cdef07aaa (patch)
tree62f28fabf631f33a1a94fb25fa076b44140adbe4 /lazy/src/component.rs
parent820d332736205c7485d08352841b705205130f38 (diff)
parentaf7cbf0003496d757696ea6e15ea32f0649cf8f9 (diff)
downloadiced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.tar.gz
iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.tar.bz2
iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.zip
Merge branch 'master' into virtual-widgets
Diffstat (limited to 'lazy/src/component.rs')
-rw-r--r--lazy/src/component.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs
index 00c27989..9e5937e9 100644
--- a/lazy/src/component.rs
+++ b/lazy/src/component.rs
@@ -7,12 +7,11 @@ use iced_native::mouse;
use iced_native::overlay;
use iced_native::renderer;
use iced_native::{
- Clipboard, Element, Hasher, Length, Point, Rectangle, Shell, Size, Widget,
+ Clipboard, Element, Length, Point, Rectangle, Shell, Size, Widget,
};
use ouroboros::self_referencing;
use std::cell::RefCell;
-use std::hash::Hash;
use std::marker::PhantomData;
/// A reusable, custom widget that uses The Elm Architecture.
@@ -217,12 +216,6 @@ where
});
}
- fn hash_layout(&self, state: &mut Hasher) {
- self.with_element(|element| {
- element.hash_layout(state);
- });
- }
-
fn mouse_interaction(
&self,
layout: Layout<'_>,
@@ -371,18 +364,6 @@ where
.unwrap_or_default()
}
- fn hash_layout(&self, state: &mut Hasher, position: Point) {
- struct Marker;
- std::any::TypeId::of::<Marker>().hash(state);
-
- (position.x as u32).hash(state);
- (position.y as u32).hash(state);
-
- self.with_overlay_maybe(|overlay| {
- overlay.hash_layout(state);
- });
- }
-
fn on_event(
&mut self,
event: iced_native::Event,