summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-21 02:07:20 +0100
committerGravatar Martin Szulecki2014-03-21 02:07:20 +0100
commit9d22637c176060c1b996e37aa9dd594a052945e9 (patch)
treec04c955a886e3bf29b12f51e73896d6911141653
parent80d3d2cfa9ae1c6cc8b0e004373e8bc8c368dd56 (diff)
downloadlibimobiledevice-9d22637c176060c1b996e37aa9dd594a052945e9.tar.gz
libimobiledevice-9d22637c176060c1b996e37aa9dd594a052945e9.tar.bz2
userpref: Remove obsolete dict item check as plist_dict_set_item() takes care
-rw-r--r--common/userpref.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/userpref.c b/common/userpref.c
index 3399036..4209e96 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -1037,11 +1037,6 @@ userpref_error_t pair_record_set_item_from_key_data(plist_t pair_record, const c
return USERPREF_E_INVALID_ARG;
}
- /* remove any existing item */
- if (plist_dict_get_item(pair_record, name)) {
- plist_dict_remove_item(pair_record, name);
- }
-
/* set new item */
plist_dict_set_item(pair_record, name, plist_new_data((char*)value->data, value->size));