summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-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
1037 return USERPREF_E_INVALID_ARG; 1037 return USERPREF_E_INVALID_ARG;
1038 } 1038 }
1039 1039
1040 /* remove any existing item */
1041 if (plist_dict_get_item(pair_record, name)) {
1042 plist_dict_remove_item(pair_record, name);
1043 }
1044
1045 /* set new item */ 1040 /* set new item */
1046 plist_dict_set_item(pair_record, name, plist_new_data((char*)value->data, value->size)); 1041 plist_dict_set_item(pair_record, name, plist_new_data((char*)value->data, value->size));
1047 1042