diff -r fd21d1840dff -r b8c49e7a1dba src/ucx/list.h --- a/src/ucx/list.h Wed May 16 19:33:31 2018 +0200 +++ b/src/ucx/list.h Thu May 17 11:13:02 2018 +0200 @@ -212,96 +212,6 @@ */ UcxList *ucx_list_append_a(UcxAllocator *allocator, UcxList *list, void *data); -/** - * Inserts an element at the end of the list, if it is not present in the list. - * - * Note: You should not try to store a freshly allocated object. Since - * it might be a duplicate, the memory allocated for that copy would be leaking - * afterwards. - * - * Deprecation notice: This function is considered to do more harm than - * it adds usefulness and is going to be removed in a future UCX release. - * - * @param list the list where to append the data, or NULL to - * create a new list - * @param data the data to insert - * @param cmpfnc the compare function - * @param cmpdata additional data for the compare function - * @return list, if it is not NULL or a pointer to - * the newly created list otherwise - * @see ucx_list_append() - */ -UcxList *ucx_list_append_once(UcxList *list, void *data, - cmp_func cmpfnc, void *cmpdata); - -/** - * Inserts an element at the end of the list, if it is not present in the list, - * using a UcxAllocator. - * - * Note: You should not try to store a freshly allocated object. Since - * it might be a duplicate, the memory allocated for that copy would be leaking - * afterwards. - * - * Deprecation notice: This function is considered to do more harm than - * it adds usefulness and is going to be removed in a future UCX release. - * - * @param allocator the allocator to use - * @param list the list where to append the data, or NULL to - * create a new list - * @param data the data to insert - * @param cmpfnc the compare function - * @param cmpdata additional data for the compare function - * @return list, if it is not NULL or a pointer to - * the newly created list otherwise - * @see ucx_list_append_a() - */ -UcxList *ucx_list_append_once_a(UcxAllocator *allocator, - UcxList *list, void *data, cmp_func cmpfnc, void *cmpdata); - -/** - * Inserts an element at the beginning of the list, if it is not present - * in the list. - * - * Note: You should not try to store a freshly allocated object. Since - * it might be a duplicate, the memory allocated for that copy would be leaking - * afterwards. - * - * Deprecation notice: This function is considered to do more harm than - * it adds usefulness and is going to be removed in a future UCX release. - * - * @param list the list where to prepend the data, or NULL to - * create a new list - * @param data the data to insert - * @param cmpfnc the compare function - * @param cmpdata additional data for the compare function - * @return a pointer to the new list head - * @see ucx_list_prepend() - */ -UcxList *ucx_list_prepend_once(UcxList *list, void *data, - cmp_func cmpfnc, void *cmpdata); - -/** - * Inserts an element at the beginning of the list, if it is not present in - * the list, using a UcxAllocator. - * - * Note: You should not try to store a freshly allocated object. Since - * it might be a duplicate, the memory allocated for that copy would be leaking - * afterwards. - * - * Deprecation notice: This function is considered to do more harm than - * it adds usefulness and is going to be removed in a future UCX release. - * - * @param allocator the allocator to use - * @param list the list where to prepend the data, or NULL to - * create a new list - * @param data the data to insert - * @param cmpfnc the compare function - * @param cmpdata additional data for the compare function - * @return a pointer to the new list head - * @see ucx_list_prepend_a() - */ -UcxList *ucx_list_prepend_once_a(UcxAllocator *allocator, - UcxList *list, void *data, cmp_func cmpfnc, void *cmpdata); /** * Inserts an element at the beginning of the list.