Remove hash_layout method from Widget trait

This commit is contained in:
Héctor Ramón Jiménez 2022-02-22 14:10:49 +07:00
parent 9fe5080153
commit 1313c94e3b
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
35 changed files with 105 additions and 636 deletions

View file

@ -5,8 +5,7 @@ use crate::Backend;
use iced_native::layout;
use iced_native::{
Color, Element, Hasher, Layout, Length, Point, Rectangle, Size, Vector,
Widget,
Color, Element, Layout, Length, Point, Rectangle, Size, Vector, Widget,
};
use thiserror::Error;
@ -74,12 +73,6 @@ where
))
}
fn hash_layout(&self, state: &mut Hasher) {
use std::hash::Hash;
self.state.contents.hash(state);
}
fn draw(
&self,
renderer: &mut Renderer<B>,