Drop useless/unused xbps_add_obj_to_{array,dict} functions.

This commit is contained in:
Juan RP
2013-08-18 10:25:17 +02:00
parent 22ae6295f5
commit 789165339a
3 changed files with 3 additions and 41 deletions

View File

@@ -52,40 +52,6 @@ struct thread_data {
* These functions manipulate plist files and objects shared by almost
* all library functions.
*/
bool HIDDEN
xbps_add_obj_to_dict(xbps_dictionary_t dict, xbps_object_t obj,
const char *key)
{
assert(xbps_object_type(dict) == XBPS_TYPE_DICTIONARY);
assert(obj != NULL);
assert(key != NULL);
if (!xbps_dictionary_set(dict, key, obj)) {
xbps_object_release(dict);
errno = EINVAL;
return false;
}
xbps_object_release(obj);
return true;
}
bool HIDDEN
xbps_add_obj_to_array(xbps_array_t array, xbps_object_t obj)
{
assert(xbps_object_type(array) == XBPS_TYPE_ARRAY);
assert(obj != NULL);
if (!xbps_array_add(array, obj)) {
xbps_object_release(array);
errno = EINVAL;
return false;
}
xbps_object_release(obj);
return true;
}
static void *
array_foreach_thread(void *arg)
{