Skip to content

Commit 8b8cd82

Browse files
jeplerdpgeorge
authored andcommitted
py/misc: Remove unused mp_check function.
This is unused since 007f127 "all: Simplify mp_int_t/mp_uint_t definition". Signed-off-by: Jeff Epler <[email protected]>
1 parent 9c9b996 commit 8b8cd82

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

py/misc.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,6 @@ static inline uint32_t mp_ctz(uint32_t x) {
411411
return _BitScanForward(&tz, x) ? tz : 0;
412412
}
413413

414-
// Workaround for 'warning C4127: conditional expression is constant'.
415-
static inline bool mp_check(bool value) {
416-
return value;
417-
}
418-
419414
static inline uint32_t mp_popcount(uint32_t x) {
420415
return __popcnt(x);
421416
}
@@ -424,7 +419,6 @@ static inline uint32_t mp_popcount(uint32_t x) {
424419
#define mp_clzl(x) __builtin_clzl(x)
425420
#define mp_clzll(x) __builtin_clzll(x)
426421
#define mp_ctz(x) __builtin_ctz(x)
427-
#define mp_check(x) (x)
428422
#if __has_builtin(__builtin_popcount)
429423
#define mp_popcount(x) __builtin_popcount(x)
430424
#else

0 commit comments

Comments
 (0)