]> Savannah Git Hosting - gnulib.git/commitdiff
hash: Remove deprecated function 'hash_delete'.
authorBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2025 20:31:48 +0000 (22:31 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2025 20:31:48 +0000 (22:31 +0200)
* lib/hash.h (hash_delete): Remove declaration.
* lib/hash.c (hash_delete): Remove function.

ChangeLog
lib/hash.c
lib/hash.h

index 4bde285e941f8d92d97c4a69bfe028edf64a992d..55c570f68bacf7477199fa674cd7155ee65b739e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-29  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        hash: Add more comments.
index e06a2354faa888b07f78d07ac7bf6548abe09768..556c82d5b8c8d571f586f48c9b9799508ed9c1f9 100644 (file)
@@ -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
index 4dfaf56d065d6f582bdb05edad233a30949b94b0..3cff33244f5f613d3e477e2905c60e1541139f35 100644 (file)
@@ -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