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:
parent
aab68b9dfa
commit
9b4b1203b6
@ -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),
|
||||||
),
|
),
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user