summaryrefslogtreecommitdiff
path: root/Modules/hashtable.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 12:25:04 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 12:25:04 +0100
commit70a9f8625ce627c1b1aae8713980ab5181d3c3b3 (patch)
treea7ebfb83bfaff02bea21c9902f3d569488fa99f1 /Modules/hashtable.c
parent3896db03c029f4ef919e06ce5e1713f3fcdb22cc (diff)
downloadcpython-70a9f8625ce627c1b1aae8713980ab5181d3c3b3.tar.gz
Remove _Py_hashtable_delete()
Issue #26588: Remove _Py_hashtable_delete() from hashtable.h since the function is not used. Keep the C code in hashtable.c as commented code if someone needs it later.
Diffstat (limited to 'Modules/hashtable.c')
-rw-r--r--Modules/hashtable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/hashtable.c b/Modules/hashtable.c
index 7094b954ea..bb20cce589 100644
--- a/Modules/hashtable.c
+++ b/Modules/hashtable.c
@@ -364,6 +364,8 @@ _Py_hashtable_pop(_Py_hashtable_t *ht, size_t key_size, const void *pkey,
}
+/* Code commented since the function is not needed in Python */
+#if 0
void
_Py_hashtable_delete(_Py_hashtable_t *ht, size_t key_size, const void *pkey)
{
@@ -374,6 +376,7 @@ _Py_hashtable_delete(_Py_hashtable_t *ht, size_t key_size, const void *pkey)
(void)_Py_hashtable_pop_entry(ht, key_size, pkey, NULL, 0);
#endif
}
+#endif
int