]> Savannah Git Hosting - gnulib.git/commitdiff
hash: remove deprecated hash_insert0 function
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 3 Apr 2015 13:58:12 +0000 (14:58 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Apr 2015 14:02:09 +0000 (15:02 +0100)
* lib/hash.h (hash_insert0): Remove deprecated function.
* lib/hash.c (hash_insert0): Likewise.
* NEWS: Document the interface change.

ChangeLog
NEWS
lib/hash.c
lib/hash.h

index 2bce94a36d8a294dcf581dd0c9b685ae984d10e5..2cf42d263dfa878272bedf46a6b1eac06bda1a5d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/NEWS b/NEWS
index 23dd4f11a576da6ae4adedec255527c804b9ec71..ef397ef21273856cd0f4f1127da73f06e72161b0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,8 @@ User visible incompatible changes
 
 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.
index 439c533dbaebfb5fa852fc74e80a3adfebe8ca27..4f27d5c8f821271d81e6dfbc64ed2f981e92ea4e 100644 (file)
@@ -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.
index e678a2bbd8d87c3f1c7ef2661efed7c7eacbd095..1e90c31a6c2aac13e3034496539fc7b9ee9dc54b 100644 (file)
@@ -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 *);