fn prune_node(node: &mut LayoutNode, block_id: &str)Expand description
Recursively remove child nodes whose data.block_id matches block_id.
If removing a child leaves a parent with only one child, collapse by
promoting the sole child to replace the parent node.
Phase E.4.B Phase 2 — operates on typed LayoutNode (was JSON walks).