diff --git a/core/src/ui/active.rs b/core/src/ui/active.rs index 401ac5a..ee2f620 100644 --- a/core/src/ui/active.rs +++ b/core/src/ui/active.rs @@ -51,8 +51,6 @@ pub struct ActiveData { /// An owned mask holds one reference independently of its primitives. pub mask_region: Option, pub children: Vec, - /// The children whose size this widget read while drawing. - pub size_deps: Vec, /// The movable region its primitives are positioned through: its own when /// opted in, otherwise the nearest ancestor's. pub move_idx: MoveIdx, diff --git a/core/src/ui/render_state.rs b/core/src/ui/render_state.rs index d84a82d..e156dc0 100644 --- a/core/src/ui/render_state.rs +++ b/core/src/ui/render_state.rs @@ -489,7 +489,6 @@ impl UiRenderState { primitives, mask_region, children, - size_deps, declared: rsc.widgets().declared_lens(id), own_align: rsc.widgets().alignment(id), move_idx, @@ -800,7 +799,6 @@ impl UiRenderState { } // After the descendants, whose slots name this one as their parent. self.drop_slot(id); - active.size_deps.clear(); active.drawn = false; self.active.insert(id, active); } @@ -844,7 +842,6 @@ impl UiRenderState { primitives: Vec::new(), mask_region: None, children: Vec::new(), - size_deps: Vec::new(), move_idx: info.parent_move, declared: Declared::NONE, own_align: rsc.widgets().alignment(id), diff --git a/core/src/widget/size_rule.rs b/core/src/widget/size_rule.rs index fee56af..bb0c8f7 100644 --- a/core/src/widget/size_rule.rs +++ b/core/src/widget/size_rule.rs @@ -36,14 +36,6 @@ impl SizeRule { Self::Exact(len) => Some(*len), } } - - /// The length a widget reporting `reported` ends up with. - pub fn apply(&self, reported: LayoutLen) -> LayoutLen { - match self { - Self::Free => reported, - Self::Exact(len) => *len, - } - } } impl From for SizeRule {