From 3fdb11126928717007127688f55a5fffa8a59ac9 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 19 Apr 2023 17:52:23 +0200 Subject: Remove deprecated plist_dict_insert_item() --- include/plist/plist.h | 12 ------------ src/plist.c | 5 ----- 2 files changed, 17 deletions(-) diff --git a/include/plist/plist.h b/include/plist/plist.h index 9b16c58..e3e228f 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h @@ -461,18 +461,6 @@ extern "C" */ void plist_dict_set_item(plist_t node, const char* key, plist_t item); - /** - * Insert a new item into a #PLIST_DICT node. - * - * @deprecated Deprecated. Use plist_dict_set_item instead. - * - * @param node the node of type #PLIST_DICT - * @param item the new item to insert - * @param key The identifier of the item to insert. - */ - PLIST_WARN_DEPRECATED("use plist_dict_set_item instead") - void plist_dict_insert_item(plist_t node, const char* key, plist_t item); - /** * Remove an existing position in a #PLIST_DICT node. * Removed position will be freed using #plist_free diff --git a/src/plist.c b/src/plist.c index 48b012b..e58e83a 100644 --- a/src/plist.c +++ b/src/plist.c @@ -887,11 +887,6 @@ PLIST_API void plist_dict_set_item(plist_t node, const char* key, plist_t item) } } -PLIST_API void plist_dict_insert_item(plist_t node, const char* key, plist_t item) -{ - plist_dict_set_item(node, key, item); -} - PLIST_API void plist_dict_remove_item(plist_t node, const char* key) { if (node && PLIST_DICT == plist_get_node_type(node)) -- cgit v1.1-32-gdbae