]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-46845: clean up unused DK_IXSIZE (GH-96405)
authorMatthias Görgens <matthias.goergens@gmail.com>
Tue, 30 Aug 2022 07:03:30 +0000 (15:03 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 07:03:30 +0000 (16:03 +0900)
Include/internal/pycore_dict.h

index 5370106d529f76024ac7763a283564bc441a508f..464092996cae005f3bfe53d528374ed81682e2c7 100644 (file)
@@ -141,17 +141,8 @@ struct _dictvalues {
 #define DK_LOG_SIZE(dk)  ((dk)->dk_log2_size)
 #if SIZEOF_VOID_P > 4
 #define DK_SIZE(dk)      (((int64_t)1)<<DK_LOG_SIZE(dk))
-#define DK_IXSIZE(dk)                     \
-    (DK_LOG_SIZE(dk) <= 7 ?               \
-        1 : DK_LOG_SIZE(dk) <= 15 ?       \
-            2 : DK_LOG_SIZE(dk) <= 31 ?   \
-                4 : sizeof(int64_t))
 #else
 #define DK_SIZE(dk)      (1<<DK_LOG_SIZE(dk))
-#define DK_IXSIZE(dk)                     \
-    (DK_LOG_SIZE(dk) <= 7 ?               \
-        1 : DK_LOG_SIZE(dk) <= 15 ?       \
-            2 : sizeof(int32_t))
 #endif
 #define DK_ENTRIES(dk) \
     (assert((dk)->dk_kind == DICT_KEYS_GENERAL), \