summaryrefslogtreecommitdiffstats
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-17 10:31:31 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit658026e6267277b27d297c481728f74d160a8481 (patch)
tree915a9d2bb48469bdd5b9127dc19a61f230721a6c /firmware/usb.c
parent8cb555460ff79e636a7907fb2589e16db98c8600 (diff)
downloadrockbox-658026e6267277b27d297c481728f74d160a8481.tar.gz
rockbox-658026e6267277b27d297c481728f74d160a8481.tar.bz2
rockbox-658026e6267277b27d297c481728f74d160a8481.zip
[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.
Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index e20388c073..f97cc75ffe 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -56,9 +56,7 @@
#define USB_FULL_INIT
#endif
-#ifdef HAVE_LCD_BITMAP
bool do_screendump_instead_of_usb = false;
-#endif
#if !defined(SIMULATOR) && !defined(USB_NONE)
@@ -116,7 +114,6 @@ static void try_reboot(void)
#endif /* USB_FIRWIRE_HANDLING */
/* Screen dump */
-#ifdef HAVE_LCD_BITMAP
static inline bool usb_do_screendump(void)
{
if(do_screendump_instead_of_usb)
@@ -129,7 +126,6 @@ static inline bool usb_do_screendump(void)
}
return false;
}
-#endif /* HAVE_LCD_BITMAP */
/* Power (charging-only) button */
static inline void usb_detect_charging_only(bool detect)
@@ -458,13 +454,11 @@ static void NORETURN_ATTR usb_thread(void)
if(usb_state != USB_EXTRACTED)
break;
-#ifdef HAVE_LCD_BITMAP
if(usb_do_screendump())
{
usb_state = USB_SCREENDUMP;
break;
}
-#endif
usb_state = USB_POWERED;
usb_stack_enable(true);