summaryrefslogtreecommitdiffstats
path: root/pure/src/widget/container.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pure/src/widget/container.rs')
-rw-r--r--pure/src/widget/container.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/pure/src/widget/container.rs b/pure/src/widget/container.rs
index 85ea8039..f42b127d 100644
--- a/pure/src/widget/container.rs
+++ b/pure/src/widget/container.rs
@@ -11,7 +11,6 @@ use iced_native::{
Clipboard, Hasher, Layout, Length, Padding, Point, Rectangle, Shell,
};
-use std::any::{self, Any};
use std::hash::Hash;
use std::u32;
@@ -124,22 +123,14 @@ impl<'a, Message, Renderer> Widget<Message, Renderer>
where
Renderer: iced_native::Renderer,
{
- fn tag(&self) -> any::TypeId {
- any::TypeId::of::<()>()
- }
-
- fn state(&self) -> Box<dyn Any> {
- Box::new(())
+ fn children(&self) -> Vec<Tree> {
+ vec![Tree::new(&self.content)]
}
fn diff(&self, tree: &mut Tree) {
tree.diff_children(std::slice::from_ref(&self.content))
}
- fn children_state(&self) -> Vec<Tree> {
- vec![Tree::new(&self.content)]
- }
-
fn width(&self) -> Length {
self.width
}