]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-46845: clean up unused DK_IXSIZE (GH-96405)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Aug 2022 07:28:51 +0000 (00:28 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 07:28:51 +0000 (00:28 -0700)
(cherry picked from commit d21d2f0793ce32d72759d5cfc11622d13e3e6b81)

Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
Include/internal/pycore_dict.h

index 24d2a711878ced7b41008fca65993aade7b0a750..dc308fe5e2184a90a1c496a500635f1c07f3b66c 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), (PyDictKeyEntry*)(&((int8_t*)((dk)->dk_indices))[(size_t)1 << (dk)->dk_log2_index_bytes]))