Skip to content

Commit a75cb10

Browse files
removed unused struct
1 parent 49106c2 commit a75cb10

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

main/usbhmsc/usbmode.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
7368
typedef 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-
938931
static 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

10521044
bool 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

Comments
 (0)