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(-) 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 From 09d5726a26dbfecf2a401e9273bfca746ae852d6 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 7 Dec 2021 16:11:31 +0700 Subject: Remove unused field in `wgpu::Backend` --- wgpu/src/backend.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/wgpu/src/backend.rs b/wgpu/src/backend.rs index bb84cc8f..7df876a0 100644 --- a/wgpu/src/backend.rs +++ b/wgpu/src/backend.rs @@ -27,7 +27,6 @@ pub struct Backend { image_pipeline: image::Pipeline, default_text_size: u16, - primitive: Primitive, } impl Backend { @@ -60,7 +59,6 @@ impl Backend { image_pipeline, default_text_size: settings.default_text_size, - primitive: Primitive::None, } } -- cgit From 37c72793d0af4bca73458f188b8b519394c2e17f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 7 Dec 2021 16:12:34 +0700 Subject: Remove unused field in `solar_system` example --- examples/solar_system/src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index c8f74978..5f9724f3 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -75,7 +75,6 @@ impl Application for SolarSystem { struct State { space_cache: canvas::Cache, system_cache: canvas::Cache, - cursor_position: Point, start: Instant, now: Instant, stars: Vec<(Point, f32)>, @@ -95,7 +94,6 @@ impl State { State { space_cache: Default::default(), system_cache: Default::default(), - cursor_position: Point::ORIGIN, start: now, now, stars: Self::generate_stars(width, height), -- cgit From fa9fb65ace74af869513db92e86c64f90f500f59 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 7 Dec 2021 16:13:53 +0700 Subject: Remove unused fields in `pokedex` example --- examples/pokedex/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs index c99240a1..85c26987 100644 --- a/examples/pokedex/src/main.rs +++ b/examples/pokedex/src/main.rs @@ -15,7 +15,6 @@ enum Pokedex { search: button::State, }, Errored { - error: Error, try_again: button::State, }, } @@ -58,9 +57,8 @@ impl Application for Pokedex { Command::none() } - Message::PokemonFound(Err(error)) => { + Message::PokemonFound(Err(_error)) => { *self = Pokedex::Errored { - error, try_again: button::State::new(), }; @@ -155,7 +153,6 @@ impl Pokemon { #[derive(Debug, Deserialize)] struct Entry { - id: u32, name: String, flavor_text_entries: Vec, } -- cgit