From fa7ea1d20af529d14d0188db0237f45684d68741 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 25 Feb 2016 23:15:28 +0100 Subject: [PATCH] (Zahrand) Cleanups --- menu/drivers/zr.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/menu/drivers/zr.c b/menu/drivers/zr.c index 7407999c01..e854e8bdeb 100644 --- a/menu/drivers/zr.c +++ b/menu/drivers/zr.c @@ -56,21 +56,6 @@ #define MAX_VERTEX_MEMORY 512 * 1024 #define MAX_ELEMENT_MEMORY 128 * 1024 -#ifndef MIN -#define MIN(a,b) ((a) < (b) ? (a) : (b)) -#endif - -#ifndef MAX -#define MAX(a,b) ((a) < (b) ? (b) : (a)) -#endif - -#ifndef CLAMP -#define CLAMP(i,v,x) (MAX(MIN(v,x), i)) -#endif - -#define LEN(a) (sizeof(a)/sizeof(a)[0]) -#define UNUSED(a) ((void)(a)) - #define MAX_BUFFER 64 #define MAX_MEMORY (32 * 1024) #define MAX_COMMAND_MEMORY (16 * 1024) @@ -892,13 +877,13 @@ static void device_draw(struct device *dev, static void* mem_alloc(zr_handle unused, size_t size) { - UNUSED(unused); + (void)unused; return calloc(1, size); } static void mem_free(zr_handle unused, void *ptr) { - UNUSED(unused); + (void)unused; free(ptr); }