1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-12 22:26:08 +00:00

refactor(eckhart): remove unused param

This commit is contained in:
Lukas Bielesch 2025-03-04 11:46:41 +01:00 committed by obrusvit
parent 0387c00efb
commit 3da8d679ac

View File

@ -57,7 +57,7 @@ impl<'a> PinKeyboard<'a> {
.vertically_centered(), .vertically_centered(),
major_warning: major_warning major_warning: major_warning
.map(|text| Label::left_aligned(text, theme::TEXT_SMALL).vertically_centered()), .map(|text| Label::left_aligned(text, theme::TEXT_SMALL).vertically_centered()),
input: PinInput::new(theme::TEXT_MONO_LIGHT), input: PinInput::new(),
keypad: Keypad::new_numeric(true), keypad: Keypad::new_numeric(true),
warning_timer: Timer::new(), warning_timer: Timer::new(),
} }
@ -258,7 +258,6 @@ pub enum PinInputMsg {
struct PinInput { struct PinInput {
area: Rect, area: Rect,
style: TextStyle,
digits: ShortString, digits: ShortString,
display_style: DisplayStyle, display_style: DisplayStyle,
last_digit_timer: Timer, last_digit_timer: Timer,
@ -278,10 +277,9 @@ impl PinInput {
const ICON_WIDTH: i16 = Self::PIN_ICON.toif.width(); const ICON_WIDTH: i16 = Self::PIN_ICON.toif.width();
const ICON_SPACE: i16 = 12; const ICON_SPACE: i16 = 12;
fn new(style: TextStyle) -> Self { fn new() -> Self {
Self { Self {
area: Rect::zero(), area: Rect::zero(),
style,
digits: ShortString::new(), digits: ShortString::new(),
display_style: DisplayStyle::Hidden, display_style: DisplayStyle::Hidden,
last_digit_timer: Timer::new(), last_digit_timer: Timer::new(),