From aed5a0d5f9bf7d366667d28bf8daa55770b80bd3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 7 Dec 2021 16:09:22 +0700 Subject: Remove unused field in `scrollable::Scrollbar` --- native/src/widget/scrollable.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'native') diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index fac8af9e..3ef737c0 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -199,7 +199,6 @@ impl<'a, Message, Renderer: crate::Renderer> Scrollable<'a, Message, Renderer> { Some(Scrollbar { outer_bounds, bounds: scrollbar_bounds, - margin: self.scrollbar_margin, scroller: Scroller { bounds: scroller_bounds, }, @@ -720,9 +719,6 @@ struct Scrollbar { /// The bounds of the [`Scrollbar`]. bounds: Rectangle, - /// The margin within the [`Scrollbar`]. - margin: u16, - /// The bounds of the [`Scroller`]. scroller: Scroller, } -- cgit