Disable unused LCD scroll functions in bootloaders

These functions just reset some state related to the scroll engine,
which is already disabled for bootloaders. They get called from the
LCD code and compiled into the binary, but have no real effect when
the rest of the scroll engine is not present. Replacing the calls
with inline stubs gets rid of this dead code from bootloaders.

Change-Id: I12a6d8926e19477ae3a5913e7fc8aff41cecd970
This commit is contained in:
Aidan MacDonald 2024-03-30 15:16:49 +00:00
parent b0a8cacd1d
commit 5fd5f56cac
2 changed files with 27 additions and 1 deletions

View file

@ -30,6 +30,7 @@
#define MAIN_LCD
#endif
#if !defined(BOOTLOADER)
static struct scrollinfo LCDFN(scroll)[LCDM(SCROLLABLE_LINES)];
struct scroll_screen_info LCDFN(scroll_info) =
@ -180,7 +181,6 @@ bool LCDFN(scroll_now)(struct scrollinfo *s)
return ended;
}
#if !defined(BOOTLOADER)
static void LCDFN(scroll_worker)(void)
{
int index;