diff options
| author | 2014-03-21 02:07:20 +0100 | |
|---|---|---|
| committer | 2014-03-21 02:07:20 +0100 | |
| commit | 9d22637c176060c1b996e37aa9dd594a052945e9 (patch) | |
| tree | c04c955a886e3bf29b12f51e73896d6911141653 /common/userpref.c | |
| parent | 80d3d2cfa9ae1c6cc8b0e004373e8bc8c368dd56 (diff) | |
| download | libimobiledevice-9d22637c176060c1b996e37aa9dd594a052945e9.tar.gz libimobiledevice-9d22637c176060c1b996e37aa9dd594a052945e9.tar.bz2 | |
userpref: Remove obsolete dict item check as plist_dict_set_item() takes care
Diffstat (limited to 'common/userpref.c')
| -rw-r--r-- | common/userpref.c | 5 |
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 | ||
