From d08a3b2310f0a0c87366414b6b410c58e6619491 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 1 Oct 2020 12:22:56 +0200 Subject: [PATCH] These functions were never used --- gfx/gfx_display.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gfx/gfx_display.c b/gfx/gfx_display.c index fe760ea851..58745286d2 100644 --- a/gfx/gfx_display.c +++ b/gfx/gfx_display.c @@ -130,17 +130,6 @@ static gfx_display_ctx_driver_t *gfx_display_ctx_drivers[] = { NULL, }; -static INLINE float gfx_display_scalef(float val, - float oldmin, float oldmax, float newmin, float newmax) -{ - return (((val - oldmin) * (newmax - newmin)) / (oldmax - oldmin)) + newmin; -} - -static INLINE float gfx_display_randf(float min, float max) -{ - return (rand() * ((max - min) / (double)RAND_MAX)) + min; -} - static float gfx_display_get_adjusted_scale_internal( gfx_display_t *p_disp, float base_scale, float scale_factor, unsigned width)