* lib/hash.h (hash_insert0): Remove deprecated function.
* lib/hash.c (hash_insert0): Likewise.
* NEWS: Document the interface change.
+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
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.
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.
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 *);