changeset 17952:522f6f858b0c

hash: remove deprecated hash_insert0 function * lib/hash.h (hash_insert0): Remove deprecated function. * lib/hash.c (hash_insert0): Likewise. * NEWS: Document the interface change.
author Giuseppe Scrivano <gscrivan@redhat.com>
date Fri, 03 Apr 2015 14:58:12 +0100
parents 2ae3c246cda5
children d1b79c99331f
files ChangeLog NEWS lib/hash.c lib/hash.h
diffstat 4 files changed, 8 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Apr 02 04:18:02 2015 +0100
+++ b/ChangeLog	Fri Apr 03 14:58:12 2015 +0100
@@ -1,3 +1,9 @@
+2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
+
+	hash: remove deprecated hash_insert0 function
+	* lib/hash.h (hash_insert0): Remove deprecated function.
+	* lib/hash.c (hash_insert0): Likewise.
+
 2015-04-02  Pádraig Brady  <P@draigBrady.com>
 
 	mountlist: remove dependency on libmount
--- a/NEWS	Thu Apr 02 04:18:02 2015 +0100
+++ b/NEWS	Fri Apr 03 14:58:12 2015 +0100
@@ -32,6 +32,8 @@
 
 Date        Modules         Changes
 
+2015-04-03  hash            hash_insert0 function removed (deprecated in 2011).
+
 2014-10-29  obstack         The obstack functions are no longer limited to
                             int sizes; size values are now of type size_t.
                             This changes both the ABI and the API.
--- a/lib/hash.c	Thu Apr 02 04:18:02 2015 +0100
+++ b/lib/hash.c	Fri Apr 03 14:58:12 2015 +0100
@@ -1116,14 +1116,6 @@
   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.
--- a/lib/hash.h	Thu Apr 02 04:18:02 2015 +0100
+++ b/lib/hash.h	Fri Apr 03 14:58:12 2015 +0100
@@ -96,10 +96,6 @@
 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 *);