summaryrefslogtreecommitdiffstats
path: root/native/src/element.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-02-23 22:41:22 +0700
committerLibravatar GitHub <noreply@github.com>2022-02-23 22:41:22 +0700
commitaf7cbf0003496d757696ea6e15ea32f0649cf8f9 (patch)
treea586436e4a1076543a3205ebc895a8463d9f7ffe /native/src/element.rs
parent9fe50801537e8fbfd2914f5139b5a609929e25db (diff)
parent1313c94e3bb206f064462bc521f78dbffc2a6cd6 (diff)
downloadiced-af7cbf0003496d757696ea6e15ea32f0649cf8f9.tar.gz
iced-af7cbf0003496d757696ea6e15ea32f0649cf8f9.tar.bz2
iced-af7cbf0003496d757696ea6e15ea32f0649cf8f9.zip
Merge pull request #1263 from iced-rs/remove-hash-layout
Remove `hash_layout` method from `Widget` trait
Diffstat (limited to '')
-rw-r--r--native/src/element.rs15
1 files changed, 1 insertions, 14 deletions
diff --git a/native/src/element.rs b/native/src/element.rs
index 6afa3f62..119b7892 100644
--- a/native/src/element.rs
+++ b/native/src/element.rs
@@ -4,7 +4,7 @@ use crate::mouse;
use crate::overlay;
use crate::renderer;
use crate::{
- Clipboard, Color, Hasher, Layout, Length, Point, Rectangle, Shell, Widget,
+ Clipboard, Color, Layout, Length, Point, Rectangle, Shell, Widget,
};
/// A generic [`Widget`].
@@ -269,11 +269,6 @@ where
)
}
- /// Computes the _layout_ hash of the [`Element`].
- pub fn hash_layout(&self, state: &mut Hasher) {
- self.widget.hash_layout(state);
- }
-
/// Returns the overlay of the [`Element`], if there is any.
pub fn overlay<'b>(
&'b mut self,
@@ -379,10 +374,6 @@ where
)
}
- fn hash_layout(&self, state: &mut Hasher) {
- self.widget.hash_layout(state);
- }
-
fn overlay(
&mut self,
layout: Layout<'_>,
@@ -504,10 +495,6 @@ where
)
}
- fn hash_layout(&self, state: &mut Hasher) {
- self.element.widget.hash_layout(state);
- }
-
fn overlay(
&mut self,
layout: Layout<'_>,