From 988edb4f8788e09e1a494600b344924e30ef98d9 Mon Sep 17 00:00:00 2001 From: Alexis Grojean Date: Mon, 27 May 2024 12:17:12 +0200 Subject: [PATCH] Clean up. --- ledger_device_sdk/src/io.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ledger_device_sdk/src/io.rs b/ledger_device_sdk/src/io.rs index 8e5bc0c8..f1abe40c 100644 --- a/ledger_device_sdk/src/io.rs +++ b/ledger_device_sdk/src/io.rs @@ -249,13 +249,6 @@ impl Comm { T: TryFrom, Reply: From<>::Error>, { - // if self.event_pending { - // self.event_pending = false; - // if let Some(value) = self.check_event() { - // return value; - // } - // } - let mut spi_buffer = [0u8; 128]; unsafe { @@ -285,21 +278,8 @@ impl Comm { T: TryFrom, Reply: From<>::Error>, { - // if self.event_pending { - // let event: Option> = self.check_event(); - // if event.is_some() { - // return true; - // } - // } - let mut spi_buffer = [0u8; 128]; - // unsafe { - // G_io_app.apdu_state = APDU_IDLE; - // G_io_app.apdu_media = IO_APDU_MEDIA_NONE; - // G_io_app.apdu_length = 0; - // } - // Signal end of command stream from SE to MCU // And prepare reception if !sys_seph::is_status_sent() {