From b01dc36fbf09c3ebf8efe1bac54205ace1b1c6cc Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 23 Mar 2023 05:30:30 +0000 Subject: Tidy up duplication of MIN/MAX fallback implementations (#20236) --- quantum/rgblight/rgblight.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'quantum/rgblight/rgblight.c') diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c index 4c476f924f..02188df95b 100644 --- a/quantum/rgblight/rgblight.c +++ b/quantum/rgblight/rgblight.c @@ -21,6 +21,7 @@ #include "rgblight.h" #include "color.h" #include "debug.h" +#include "util.h" #include "led_tables.h" #include #ifdef EEPROM_ENABLE @@ -30,13 +31,6 @@ # include "velocikey.h" #endif -#ifndef MIN -# define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#endif -#ifndef MAX -# define MAX(a, b) (((a) > (b)) ? (a) : (b)) -#endif - #ifdef RGBLIGHT_SPLIT /* for split keyboard */ # define RGBLIGHT_SPLIT_SET_CHANGE_MODE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_MODE -- cgit v1.2.3