From 8b8cd825605a6cf93e7de3db1c871ba56bd2abfc Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 27 Nov 2025 21:17:12 -0600 Subject: py/misc: Remove unused mp_check function. This is unused since 007f127a61ea058ca010b85883072bdefe0234c0 "all: Simplify mp_int_t/mp_uint_t definition". Signed-off-by: Jeff Epler --- py/misc.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'py') diff --git a/py/misc.h b/py/misc.h index 5188b8030..f3688c73e 100644 --- a/py/misc.h +++ b/py/misc.h @@ -411,11 +411,6 @@ static inline uint32_t mp_ctz(uint32_t x) { return _BitScanForward(&tz, x) ? tz : 0; } -// Workaround for 'warning C4127: conditional expression is constant'. -static inline bool mp_check(bool value) { - return value; -} - static inline uint32_t mp_popcount(uint32_t x) { return __popcnt(x); } @@ -424,7 +419,6 @@ static inline uint32_t mp_popcount(uint32_t x) { #define mp_clzl(x) __builtin_clzl(x) #define mp_clzll(x) __builtin_clzll(x) #define mp_ctz(x) __builtin_ctz(x) -#define mp_check(x) (x) #if __has_builtin(__builtin_popcount) #define mp_popcount(x) __builtin_popcount(x) #else -- cgit v1.2.3