summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-04-02 02:27:15 +0200
committerGravatar Nikias Bassen2014-04-02 02:27:15 +0200
commit88528c2ead70c489d8181e02cfb0b07efcebfd9e (patch)
tree37a0da712503d311f7320c0bc4bc4d37bc84948a /src
parente1a4bd03ec843ac7bd12aab143c66bd5e2c5eb15 (diff)
downloadlibplist-88528c2ead70c489d8181e02cfb0b07efcebfd9e.tar.gz
libplist-88528c2ead70c489d8181e02cfb0b07efcebfd9e.tar.bz2
Simplify plist_dict_merge() after plist_dict_set_item() API change
Diffstat (limited to 'src')
-rw-r--r--src/plist.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plist.c b/src/plist.c
index eeb4ffd..940362e 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -459,9 +459,6 @@ void plist_dict_merge(plist_t *target, plist_t source)
if (!key)
break;
- if (plist_dict_get_item(*target, key) != NULL)
- plist_dict_remove_item(*target, key);
-
plist_dict_set_item(*target, key, plist_copy(subnode));
free(key);
key = NULL;