Skip to content

Commit

Permalink
Remove deprecated plist_dict_insert_item()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Apr 19, 2023
1 parent ce9ce43 commit 3fdb111
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions include/plist/plist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions src/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3fdb111

Please sign in to comment.