Skip to content

Commit 76bc62c

Browse files
authored
Merge pull request #14 from Ivy-Interactive/tendril/00259-RemoveUnusedInsertWithIdFromViewTree
[00259] Remove unused insert_with_id from ViewTree
2 parents b1212ab + 74b7666 commit 76bc62c

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

rusty/src/core/view_tree.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,6 @@ impl ViewTree {
5959
child_id
6060
}
6161

62-
/// Insert a child view with a specific ViewId (for stable keying).
63-
pub fn insert_with_id(
64-
&mut self,
65-
parent_id: ViewId,
66-
child_id: ViewId,
67-
view: Arc<dyn View>,
68-
) -> ViewId {
69-
let child_node = ViewNode {
70-
view_id: child_id,
71-
view,
72-
parent: Some(parent_id),
73-
children: Vec::new(),
74-
};
75-
self.nodes.insert(child_id, child_node);
76-
if let Some(parent) = self.nodes.get_mut(&parent_id) {
77-
if !parent.children.contains(&child_id) {
78-
parent.children.push(child_id);
79-
}
80-
}
81-
child_id
82-
}
83-
8462
/// Remove a node and all its descendants from the tree.
8563
/// Returns the list of removed ViewIds (for HookStore cleanup).
8664
pub fn remove(&mut self, view_id: ViewId) -> Vec<ViewId> {

0 commit comments

Comments
 (0)