From 555c19e391b3feb6985d1af3cef3bcc4abedc11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Thu, 4 Jan 2024 18:22:30 +0100 Subject: [PATCH] Remove `ViewState.children_nodes` --- src/context.rs | 2 -- src/view_data.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/context.rs b/src/context.rs index a2dabf98..bd080cbf 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1367,8 +1367,6 @@ impl<'a> LayoutCx<'a> { if has_children { let nodes = children(self); let _ = self.app_state.taffy.set_children(node, &nodes); - let view = self.app_state.view_state(id); - view.children_nodes = nodes; } node diff --git a/src/view_data.rs b/src/view_data.rs index e58bf3df..11988a16 100644 --- a/src/view_data.rs +++ b/src/view_data.rs @@ -125,7 +125,6 @@ bitflags! { /// View state stores internal state associated with a view which is owned and managed by Floem. pub struct ViewState { pub(crate) node: Node, - pub(crate) children_nodes: Vec, pub(crate) requested_changes: ChangeFlags, /// Layout is requested on all direct and indirect children. pub(crate) request_style_recursive: bool, @@ -164,7 +163,6 @@ impl ViewState { combined_style: Style::new(), taffy_style: taffy::style::Style::DEFAULT, dragging_style: None, - children_nodes: Vec::new(), event_listeners: HashMap::new(), context_menu: None, popout_menu: None,