From 8e5e5c452861af06e4bf85370e8928d2bf8d268f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 7 Nov 2024 13:04:26 +0100 Subject: [PATCH] color2rgb() is dead code --- src/x49gpng/ui.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/x49gpng/ui.c b/src/x49gpng/ui.c index 99bd8d5..f2b6165 100644 --- a/src/x49gpng/ui.c +++ b/src/x49gpng/ui.c @@ -1586,11 +1586,6 @@ static int draw_lcd( GtkWidget* widget, GdkEventConfigure* event, gpointer user_ return false; } -static inline unsigned color2rgb( x49gp_ui_t* ui, int color ) -{ - return 0x000000 | ( ui->colors[ color ].red << 8 ) | ( ui->colors[ color ].green << 16 ) | ( ui->colors[ color ].blue ); -} - static gboolean react_to_window_click( GtkWidget* widget, GdkEventButton* event, gpointer user_data ) { #ifdef DEBUG_X49GP_UI