bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnulib PATCH] hash: remove deprecated hash_insert0 function


From: Giuseppe Scrivano
Subject: [gnulib PATCH] hash: remove deprecated hash_insert0 function
Date: Fri, 3 Apr 2015 15:04:53 +0200

* lib/hash.h (hash_insert0): Remove deprecated function.
* lib/hash.c (hash_insert0): Likewise.
---
 ChangeLog  | 6 ++++++
 lib/hash.c | 8 --------
 lib/hash.h | 4 ----
 3 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6d690cc..084d00e 100644


--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-04-03  Giuseppe Scrivano  <address@hidden>
+
+       hash: remove deprecated hash_insert0 function
+       * lib/hash.h (hash_insert0): Remove deprecated function.
+       * lib/hash.c (hash_insert0): Likewise.
+
 2015-04-02  Paul Eggert  <address@hidden>
 
        stddef: port to pre-C11 GCC on x86
diff --git a/lib/hash.c b/lib/hash.c
index 439c533..4f27d5c 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -1116,14 +1116,6 @@ hash_insert_if_absent (Hash_table *table, void const 
*entry,
   return 1;
 }
 
-/* hash_insert0 is the deprecated name for hash_insert_if_absent.
-   .  */
-int
-hash_insert0 (Hash_table *table, void const *entry, void const **matched_ent)
-{
-  return hash_insert_if_absent (table, entry, matched_ent);
-}
-
 /* If ENTRY matches an entry already in the hash table, return the pointer
    to the entry from the table.  Otherwise, insert ENTRY and return ENTRY.
    Return NULL if the storage required for insertion cannot be allocated.
diff --git a/lib/hash.h b/lib/hash.h
index e678a2b..1e90c31 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -96,10 +96,6 @@ void hash_free (Hash_table *);
 bool hash_rehash (Hash_table *, size_t) _GL_ATTRIBUTE_WUR;
 void *hash_insert (Hash_table *, const void *) _GL_ATTRIBUTE_WUR;
 
-/* Deprecate this interface.  It has been renamed to hash_insert_if_absent.  */
-int hash_insert0 (Hash_table *table, /* FIXME: remove in 2013 */
-                  const void *entry,
-                  const void **matched_ent) _GL_ATTRIBUTE_DEPRECATED;
 int hash_insert_if_absent (Hash_table *table, const void *entry,
                            const void **matched_ent);
 void *hash_delete (Hash_table *, const void *);
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]