1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-27 16:48:09 +00:00

refactor(core/mercury): remove some unused code

[no changelog]
This commit is contained in:
obrusvit 2024-09-06 15:59:45 +02:00 committed by Vít Obrusník
parent aab68b9dfa
commit 9b4b1203b6
2 changed files with 1 additions and 9 deletions

View File

@ -60,7 +60,7 @@ where
Ok(Self { Ok(Self {
value: 0, value: 0,
indeterminate, indeterminate,
content: Frame::centered( content: Frame::left_aligned(
TR::coinjoin__title_progress.into(), TR::coinjoin__title_progress.into(),
Split::bottom(RECTANGLE_HEIGHT, 0, Empty, inner), Split::bottom(RECTANGLE_HEIGHT, 0, Empty, inner),
), ),

View File

@ -81,7 +81,6 @@ impl HorizontalSwipe {
#[derive(Clone)] #[derive(Clone)]
pub struct Frame<T> { pub struct Frame<T> {
border: Insets,
bounds: Rect, bounds: Rect,
content: T, content: T,
header: Header, header: Header,
@ -105,7 +104,6 @@ where
pub const fn new(alignment: Alignment, title: TString<'static>, content: T) -> Self { pub const fn new(alignment: Alignment, title: TString<'static>, content: T) -> Self {
Self { Self {
bounds: Rect::zero(), bounds: Rect::zero(),
border: theme::borders(),
content, content,
header: Header::new(alignment, title), header: Header::new(alignment, title),
header_update_fn: None, header_update_fn: None,
@ -132,12 +130,6 @@ where
Self::new(Alignment::Center, title, content) Self::new(Alignment::Center, title, content)
} }
#[inline(never)]
pub const fn with_border(mut self, border: Insets) -> Self {
self.border = border;
self
}
#[inline(never)] #[inline(never)]
pub fn with_subtitle(mut self, subtitle: TString<'static>) -> Self { pub fn with_subtitle(mut self, subtitle: TString<'static>) -> Self {
self.header = self.header.with_subtitle(subtitle); self.header = self.header.with_subtitle(subtitle);