summaryrefslogtreecommitdiffstats
path: root/native/src/widget/pane_grid.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/widget/pane_grid.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 'native/src/widget/pane_grid.rs')
-rw-r--r--native/src/widget/pane_grid.rs19
1 files changed, 2 insertions, 17 deletions
diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs
index 5f293fa6..8ad63cf1 100644
--- a/native/src/widget/pane_grid.rs
+++ b/native/src/widget/pane_grid.rs
@@ -34,8 +34,8 @@ use crate::overlay;
use crate::renderer;
use crate::touch;
use crate::{
- Clipboard, Color, Element, Hasher, Layout, Length, Point, Rectangle, Shell,
- Size, Vector, Widget,
+ Clipboard, Color, Element, Layout, Length, Point, Rectangle, Shell, Size,
+ Vector, Widget,
};
pub use iced_style::pane_grid::{Line, StyleSheet};
@@ -666,21 +666,6 @@ where
}
}
- fn hash_layout(&self, state: &mut Hasher) {
- use std::hash::Hash;
-
- struct Marker;
- std::any::TypeId::of::<Marker>().hash(state);
-
- self.width.hash(state);
- self.height.hash(state);
- self.state.hash_layout(state);
-
- for (_, element) in &self.elements {
- element.hash_layout(state);
- }
- }
-
fn overlay(
&mut self,
layout: Layout<'_>,