From 1a600c2929273da4632cf71b785273fedde7a954 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Mon, 27 Jan 2025 14:52:47 -0600 Subject: [PATCH] Fixup accidental root links --- src/rust/uisp_integration/src/strategies/full/tree_walk.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/rust/uisp_integration/src/strategies/full/tree_walk.rs b/src/rust/uisp_integration/src/strategies/full/tree_walk.rs index 2362aaca..c00bfaff 100644 --- a/src/rust/uisp_integration/src/strategies/full/tree_walk.rs +++ b/src/rust/uisp_integration/src/strategies/full/tree_walk.rs @@ -20,13 +20,6 @@ pub fn walk_tree_for_routing( root_site: &str, overrides: &Vec, ) -> Result<(), UispIntegrationError> { - // Make sure that parent indices go both ways - let parent_map = sites.iter().enumerate().map(|(i,s)| (i, s.parent_indices.clone())).collect::>>(); - for (i, site) in parent_map { - for parent in site.iter() { - sites[*parent].parent_indices.insert(i); - } - } // Initialize the visualization let mut dot_graph = "digraph G {\n graph [ ranksep=2.0 overlap=false ]\n".to_string();