mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-12 14:16:06 +00:00
refactor(eckhart): remove unused param
This commit is contained in:
parent
0387c00efb
commit
3da8d679ac
@ -57,7 +57,7 @@ impl<'a> PinKeyboard<'a> {
|
||||
.vertically_centered(),
|
||||
major_warning: major_warning
|
||||
.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),
|
||||
warning_timer: Timer::new(),
|
||||
}
|
||||
@ -258,7 +258,6 @@ pub enum PinInputMsg {
|
||||
|
||||
struct PinInput {
|
||||
area: Rect,
|
||||
style: TextStyle,
|
||||
digits: ShortString,
|
||||
display_style: DisplayStyle,
|
||||
last_digit_timer: Timer,
|
||||
@ -278,10 +277,9 @@ impl PinInput {
|
||||
const ICON_WIDTH: i16 = Self::PIN_ICON.toif.width();
|
||||
const ICON_SPACE: i16 = 12;
|
||||
|
||||
fn new(style: TextStyle) -> Self {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
area: Rect::zero(),
|
||||
style,
|
||||
digits: ShortString::new(),
|
||||
display_style: DisplayStyle::Hidden,
|
||||
last_digit_timer: Timer::new(),
|
||||
|
Loading…
Reference in New Issue
Block a user