From 4b349d2393f9be079302c97d84bffb9b14fe75d7 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sat, 19 Dec 2020 21:59:05 +0100 Subject: [PATCH] Removed unused function --- src/osdep/amiberry_gfx.cpp | 18 ------------------ src/osdep/picasso96.h | 1 - 2 files changed, 19 deletions(-) diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index 869a77745..2cdb11390 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -1677,24 +1677,6 @@ static int get_display_depth() return screen->format->BytesPerPixel * 8; } -int GetSurfacePixelFormat() -{ - const auto depth = get_display_depth(); - const auto unit = depth + 1 & 0xF8; - - return unit == 8 - ? RGBFB_CHUNKY - : depth == 15 && unit == 16 - ? RGBFB_R5G5B5 - : depth == 16 && unit == 16 - ? RGBFB_R5G6B5 - : unit == 24 - ? RGBFB_R8G8B8 - : unit == 32 - ? RGBFB_R8G8B8A8 - : RGBFB_NONE; -} - int graphics_init(bool mousecapture) { inputdevice_unacquire(); diff --git a/src/osdep/picasso96.h b/src/osdep/picasso96.h index bb9728b43..a6b297c92 100644 --- a/src/osdep/picasso96.h +++ b/src/osdep/picasso96.h @@ -62,7 +62,6 @@ struct MultiDisplay { }; extern struct MultiDisplay Displays[MAX_DISPLAYS]; -extern int GetSurfacePixelFormat(void); extern void picasso_init_resolutions (void); #ifdef PICASSO96