From 849af38f5e5e4bf4d9c6160384d2d2b08b7f8745 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 9 Jan 2025 19:20:38 +0100 Subject: [PATCH] refactor(core): remove an unused member from `ErrorScreen` Also, rename `ErrorScreen::place` argument to `_bounds`, similarly to how it's done in `model_quicksilver` and `model_bolt`. --- core/embed/rust/src/ui/layout_samson/component/error.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/embed/rust/src/ui/layout_samson/component/error.rs b/core/embed/rust/src/ui/layout_samson/component/error.rs index 6fb7f0ad30..c033929da9 100644 --- a/core/embed/rust/src/ui/layout_samson/component/error.rs +++ b/core/embed/rust/src/ui/layout_samson/component/error.rs @@ -24,7 +24,6 @@ pub struct ErrorScreen<'a> { title: Child>, message: Child>, footer: Child>, - area: Rect, } impl<'a> ErrorScreen<'a> { @@ -39,7 +38,6 @@ impl<'a> ErrorScreen<'a> { title: Child::new(title), message: Child::new(message), footer: Child::new(footer), - area: Rect::zero(), } } } @@ -47,7 +45,7 @@ impl<'a> ErrorScreen<'a> { impl Component for ErrorScreen<'_> { type Msg = Never; - fn place(&mut self, bounds: Rect) -> Rect { + fn place(&mut self, _bounds: Rect) -> Rect { self.bg.place(screen()); let title_area = Rect::new(screen().top_left(), screen().top_right() + Offset::y(11)); @@ -77,7 +75,6 @@ impl Component for ErrorScreen<'_> { ); self.footer.place(footer_area); - self.area = bounds; screen() }