From 74b766642815e71fd9fa6b091685e68196dc107e Mon Sep 17 00:00:00 2001 From: rorychatt Date: Thu, 16 Apr 2026 16:26:07 +0200 Subject: [PATCH] [00259] Remove unused insert_with_id from ViewTree --- rusty/src/core/view_tree.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/rusty/src/core/view_tree.rs b/rusty/src/core/view_tree.rs index e561dbd..dc781a5 100644 --- a/rusty/src/core/view_tree.rs +++ b/rusty/src/core/view_tree.rs @@ -59,28 +59,6 @@ impl ViewTree { child_id } - /// Insert a child view with a specific ViewId (for stable keying). - pub fn insert_with_id( - &mut self, - parent_id: ViewId, - child_id: ViewId, - view: Arc, - ) -> ViewId { - let child_node = ViewNode { - view_id: child_id, - view, - parent: Some(parent_id), - children: Vec::new(), - }; - self.nodes.insert(child_id, child_node); - if let Some(parent) = self.nodes.get_mut(&parent_id) { - if !parent.children.contains(&child_id) { - parent.children.push(child_id); - } - } - child_id - } - /// Remove a node and all its descendants from the tree. /// Returns the list of removed ViewIds (for HookStore cleanup). pub fn remove(&mut self, view_id: ViewId) -> Vec {