@@ -64,11 +64,6 @@ typedef struct {
64
64
void * ctx ;
65
65
} usbstorage_action_context_t ;
66
66
67
- typedef struct {
68
- script_variant_t variant ;
69
- uint16_t account ;
70
- } export_xpub_ctx_t ;
71
-
72
67
// Function/action to call on a usb-storage directory
73
68
typedef bool (* usbstorage_action_fn_t )(const usbstorage_action_context_t * ctx );
74
69
@@ -916,7 +911,6 @@ static gui_activity_t* make_export_xpub_prompt_activity(void) {
916
911
"connected storage device?"
917
912
};
918
913
919
-
920
914
btn_data_t hdr [] = {
921
915
{.txt = "=" , .font = JADE_SYMBOLS_16x16_FONT , .ev_id = BTN_SETTINGS_EXPORT_XPUB_BACK },
922
916
{.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) {
934
928
);
935
929
}
936
930
937
-
938
931
static bool export_usb_xpub_fn (const usbstorage_action_context_t * ctx ) {
939
932
940
-
941
933
uint32_t qr_flags = storage_get_qr_flags ();
942
934
943
935
while (true) {
@@ -1051,8 +1043,7 @@ static bool export_usb_xpub_fn(const usbstorage_action_context_t* ctx) {
1051
1043
1052
1044
bool usbstorage_export_xpub (const char * extra_path ) {
1053
1045
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 };
1056
1047
return handle_usbstorage_action ("Export Xpub" , export_usb_xpub_fn , & ctx , is_async );
1057
1048
}
1058
1049
0 commit comments