[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] lib/hash.c, lib/hash.h: Prune deprecated code
From: |
Ben Allen |
Subject: |
[PATCH] lib/hash.c, lib/hash.h: Prune deprecated code |
Date: |
Mon, 7 Oct 2024 20:28:35 -0400 |
Removing deprecated function hash_delete()
---
lib/hash.c | 6 ------
lib/hash.h | 5 -----
2 files changed, 11 deletions(-)
diff --git a/lib/hash.c b/lib/hash.c
index 2b123be754..b5bd8a32a0 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -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
diff --git a/lib/hash.h b/lib/hash.h
index f764985fb6..e39db8edbd 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -261,11 +261,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
--
2.34.1
- [PATCH] lib/hash.c, lib/hash.h: Prune deprecated code,
Ben Allen <=