From: Bruno Haible Date: Tue, 29 Apr 2025 20:31:48 +0000 (+0200) Subject: hash: Remove deprecated function 'hash_delete'. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9f4085195b2fbfe15771018074a2354801624ae2;p=gnulib.git hash: Remove deprecated function 'hash_delete'. * lib/hash.h (hash_delete): Remove declaration. * lib/hash.c (hash_delete): Remove function. --- diff --git a/ChangeLog b/ChangeLog index 4bde285e94..55c570f68b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-29 Bruno Haible + + hash: Remove deprecated function 'hash_delete'. + * lib/hash.h (hash_delete): Remove declaration. + * lib/hash.c (hash_delete): Remove function. + 2025-04-29 Bruno Haible hash: Add more comments. diff --git a/lib/hash.c b/lib/hash.c index e06a2354fa..556c82d5b8 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -1085,12 +1085,6 @@ hash_remove (Hash_table *table, const void *entry) return data; } -void * -hash_delete (Hash_table *table, const void *entry) -{ - return hash_remove (table, entry); -} - /* Testing. */ #if TESTING diff --git a/lib/hash.h b/lib/hash.h index 4dfaf56d06..3cff33244f 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -276,11 +276,6 @@ extern int hash_insert_if_absent (Hash_table *table, const void *entry, table, don't modify the table and return NULL. */ extern void *hash_remove (Hash_table *table, const void *entry); -/* Same as hash_remove. This interface is deprecated. - FIXME: Remove in 2022. */ -_GL_ATTRIBUTE_DEPRECATED -extern void *hash_delete (Hash_table *table, const void *entry); - # ifdef __cplusplus } # endif