From 9b4b1203b6421d0911e1b602b71937541faad807 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Fri, 6 Sep 2024 15:59:45 +0200 Subject: [PATCH] refactor(core/mercury): remove some unused code [no changelog] --- .../src/ui/model_mercury/component/coinjoin_progress.rs | 2 +- core/embed/rust/src/ui/model_mercury/component/frame.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs b/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs index bdca56291a..b67616bee2 100644 --- a/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs +++ b/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs @@ -60,7 +60,7 @@ where Ok(Self { value: 0, indeterminate, - content: Frame::centered( + content: Frame::left_aligned( TR::coinjoin__title_progress.into(), Split::bottom(RECTANGLE_HEIGHT, 0, Empty, inner), ), diff --git a/core/embed/rust/src/ui/model_mercury/component/frame.rs b/core/embed/rust/src/ui/model_mercury/component/frame.rs index 3f7fa384a2..ecc4533a80 100644 --- a/core/embed/rust/src/ui/model_mercury/component/frame.rs +++ b/core/embed/rust/src/ui/model_mercury/component/frame.rs @@ -81,7 +81,6 @@ impl HorizontalSwipe { #[derive(Clone)] pub struct Frame { - border: Insets, bounds: Rect, content: T, header: Header, @@ -105,7 +104,6 @@ where pub const fn new(alignment: Alignment, title: TString<'static>, content: T) -> Self { Self { bounds: Rect::zero(), - border: theme::borders(), content, header: Header::new(alignment, title), header_update_fn: None, @@ -132,12 +130,6 @@ where Self::new(Alignment::Center, title, content) } - #[inline(never)] - pub const fn with_border(mut self, border: Insets) -> Self { - self.border = border; - self - } - #[inline(never)] pub fn with_subtitle(mut self, subtitle: TString<'static>) -> Self { self.header = self.header.with_subtitle(subtitle);