@@ -64,11 +64,6 @@ typedef struct {
6464 void * ctx ;
6565} usbstorage_action_context_t ;
6666
67- typedef struct {
68- script_variant_t variant ;
69- uint16_t account ;
70- } export_xpub_ctx_t ;
71-
7267// Function/action to call on a usb-storage directory
7368typedef bool (* usbstorage_action_fn_t )(const usbstorage_action_context_t * ctx );
7469
@@ -916,7 +911,6 @@ static gui_activity_t* make_export_xpub_prompt_activity(void) {
916911 "connected storage device?"
917912 };
918913
919-
920914 btn_data_t hdr [] = {
921915 {.txt = "=" , .font = JADE_SYMBOLS_16x16_FONT , .ev_id = BTN_SETTINGS_EXPORT_XPUB_BACK },
922916 {.txt = NULL , .font = GUI_DEFAULT_FONT , .ev_id = GUI_BUTTON_EVENT_NONE }
@@ -934,10 +928,8 @@ static gui_activity_t* make_export_xpub_prompt_activity(void) {
934928 );
935929}
936930
937-
938931static bool export_usb_xpub_fn (const usbstorage_action_context_t * ctx ) {
939932
940-
941933 uint32_t qr_flags = storage_get_qr_flags ();
942934
943935 while (true) {
@@ -1051,8 +1043,7 @@ static bool export_usb_xpub_fn(const usbstorage_action_context_t* ctx) {
10511043
10521044bool usbstorage_export_xpub (const char * extra_path ) {
10531045 const bool is_async = false;
1054- export_xpub_ctx_t options = { P2PKH , 0 };
1055- usbstorage_action_context_t ctx = { .extra_path = extra_path , .ctx = & options };
1046+ usbstorage_action_context_t ctx = { .extra_path = NULL , .ctx = NULL };
10561047 return handle_usbstorage_action ("Export Xpub" , export_usb_xpub_fn , & ctx , is_async );
10571048}
10581049
0 commit comments