Skip to content

Commit

Permalink
Remove unused C called function
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Sep 9, 2024
1 parent 393c8bc commit fe9ca18
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions ledger_device_sdk/src/nbgl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use include_gif::include_gif;
use ledger_secure_sdk_sys::*;

#[no_mangle]
pub static mut G_ux_params: bolos_ux_params_t = unsafe { const_zero!(bolos_ux_params_t) };
static mut G_ux_params: bolos_ux_params_t = unsafe { const_zero!(bolos_ux_params_t) };

pub mod nbgl_address_review;
pub mod nbgl_choice;
Expand Down Expand Up @@ -267,19 +267,6 @@ pub fn init_comm(comm: &mut Comm) {
}
}

/// IO function used in the synchronous NBGL C library to process
/// events (touch, buttons, etc.) or detect if an APDU was received.
/// It returns true if an APDU was received, false otherwise.
#[no_mangle]
pub extern "C" fn io_recv_and_process_event() -> bool {
unsafe {
if let Some(comm) = COMM_REF.as_mut() {
return comm.next_event_ahead::<ApduHeader>();
}
}
false
}

/// Private helper function to display a warning screen when a transaction
/// is reviewed in "blind" mode. The user can choose to go back to safety
/// or review the risk. If the user chooses to review the risk, a second screen
Expand Down

0 comments on commit fe9ca18

Please sign in to comment.