File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments