mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 08:08:51 +00:00
refactor(core/mercury): remove some unused code
[no changelog]
This commit is contained in:
parent
aab68b9dfa
commit
9b4b1203b6
@ -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),
|
||||
),
|
||||
|
@ -81,7 +81,6 @@ impl HorizontalSwipe {
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Frame<T> {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user