quickscreen: remove callback

this isn't used by anything anymore

Change-Id: Ia94b34a5e72b3b78e5e65f0a7a75c4aa347f0100
This commit is contained in:
Christian Soffke 2025-06-08 16:53:50 +02:00
parent 5f05d66853
commit fbbf08575f
2 changed files with 0 additions and 6 deletions

View file

@ -392,9 +392,6 @@ static int gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_enter
ret |= QUICKSCREEN_CHANGED; ret |= QUICKSCREEN_CHANGED;
can_quit = true; can_quit = true;
redraw = true; redraw = true;
if (qs->callback)
qs->callback(qs);
} }
else if (button == button_enter) else if (button == button_enter)
can_quit = true; can_quit = true;
@ -454,7 +451,6 @@ int quick_screen_quick(int button_enter)
qs.items[i] = NULL; qs.items[i] = NULL;
} }
qs.callback = NULL;
int ret = gui_syncquickscreen_run(&qs, button_enter, &usb); int ret = gui_syncquickscreen_run(&qs, button_enter, &usb);
if (ret & QUICKSCREEN_CHANGED) if (ret & QUICKSCREEN_CHANGED)
{ {

View file

@ -46,8 +46,6 @@ enum quickscreen_return {
struct gui_quickscreen struct gui_quickscreen
{ {
const struct settings_list *items[QUICKSCREEN_ITEM_COUNT]; const struct settings_list *items[QUICKSCREEN_ITEM_COUNT];
void (*callback)(struct gui_quickscreen * qs); /* called after a
item is changed */
}; };
extern int quick_screen_quick(int button_enter); extern int quick_screen_quick(int button_enter);