summaryrefslogtreecommitdiffstats
path: root/native/src/widget/scrollable.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 /native/src/widget/scrollable.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 'native/src/widget/scrollable.rs')
-rw-r--r--native/src/widget/scrollable.rs16
1 files changed, 3 insertions, 13 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs
index 25fd2613..3752fd71 100644
--- a/native/src/widget/scrollable.rs
+++ b/native/src/widget/scrollable.rs
@@ -7,11 +7,11 @@ use crate::renderer;
use crate::touch;
use crate::widget::Column;
use crate::{
- Alignment, Background, Clipboard, Color, Element, Hasher, Layout, Length,
- Padding, Point, Rectangle, Shell, Size, Vector, Widget,
+ Alignment, Background, Clipboard, Color, Element, Layout, Length, Padding,
+ Point, Rectangle, Shell, Size, Vector, Widget,
};
-use std::{f32, hash::Hash, u32};
+use std::{f32, u32};
pub use iced_style::scrollable::StyleSheet;
@@ -721,16 +721,6 @@ where
)
}
- fn hash_layout(&self, state: &mut Hasher) {
- struct Marker;
- std::any::TypeId::of::<Marker>().hash(state);
-
- self.height.hash(state);
- self.max_height.hash(state);
-
- self.content.hash_layout(state)
- }
-
fn overlay(
&mut self,
layout: Layout<'_>,