src/ucx/list.h

changeset 323
b8c49e7a1dba
parent 293
d994325445f1
child 371
365b24f20f98
     1.1 --- a/src/ucx/list.h	Wed May 16 19:33:31 2018 +0200
     1.2 +++ b/src/ucx/list.h	Thu May 17 11:13:02 2018 +0200
     1.3 @@ -212,96 +212,6 @@
     1.4   */
     1.5  UcxList *ucx_list_append_a(UcxAllocator *allocator, UcxList *list, void *data);
     1.6  
     1.7 -/**
     1.8 - * Inserts an element at the end of the list, if it is not present in the list.
     1.9 - * 
    1.10 - * <b>Note:</b> You should not try to store a freshly allocated object. Since
    1.11 - * it might be a duplicate, the memory allocated for that copy would be leaking
    1.12 - * afterwards.
    1.13 - * 
    1.14 - * <b>Deprecation notice:</b> This function is considered to do more harm than
    1.15 - * it adds usefulness and is going to be removed in a future UCX release.
    1.16 - * 
    1.17 - * @param list the list where to append the data, or <code>NULL</code> to
    1.18 - * create a new list
    1.19 - * @param data the data to insert
    1.20 - * @param cmpfnc the compare function
    1.21 - * @param cmpdata additional data for the compare function
    1.22 - * @return <code>list</code>, if it is not <code>NULL</code> or a pointer to
    1.23 - * the newly created list otherwise
    1.24 - * @see ucx_list_append()
    1.25 - */
    1.26 -UcxList *ucx_list_append_once(UcxList *list, void *data,
    1.27 -        cmp_func cmpfnc, void *cmpdata);
    1.28 -
    1.29 -/**
    1.30 - * Inserts an element at the end of the list, if it is not present in the list,
    1.31 - * using a UcxAllocator.
    1.32 - * 
    1.33 - * <b>Note:</b> You should not try to store a freshly allocated object. Since
    1.34 - * it might be a duplicate, the memory allocated for that copy would be leaking
    1.35 - * afterwards.
    1.36 - * 
    1.37 - * <b>Deprecation notice:</b> This function is considered to do more harm than
    1.38 - * it adds usefulness and is going to be removed in a future UCX release.
    1.39 - * 
    1.40 - * @param allocator the allocator to use
    1.41 - * @param list the list where to append the data, or <code>NULL</code> to
    1.42 - * create a new list
    1.43 - * @param data the data to insert
    1.44 - * @param cmpfnc the compare function
    1.45 - * @param cmpdata additional data for the compare function
    1.46 - * @return <code>list</code>, if it is not <code>NULL</code> or a pointer to
    1.47 - * the newly created list otherwise
    1.48 - * @see ucx_list_append_a()
    1.49 - */
    1.50 -UcxList *ucx_list_append_once_a(UcxAllocator *allocator,
    1.51 -        UcxList *list, void *data, cmp_func cmpfnc, void *cmpdata);
    1.52 -
    1.53 -/**
    1.54 - * Inserts an element at the beginning of the list, if it is not present
    1.55 - * in the list.
    1.56 - * 
    1.57 - * <b>Note:</b> You should not try to store a freshly allocated object. Since
    1.58 - * it might be a duplicate, the memory allocated for that copy would be leaking
    1.59 - * afterwards.
    1.60 - * 
    1.61 - * <b>Deprecation notice:</b> This function is considered to do more harm than
    1.62 - * it adds usefulness and is going to be removed in a future UCX release.
    1.63 - * 
    1.64 - * @param list the list where to prepend the data, or <code>NULL</code> to
    1.65 - * create a new list
    1.66 - * @param data the data to insert
    1.67 - * @param cmpfnc the compare function
    1.68 - * @param cmpdata additional data for the compare function
    1.69 - * @return a pointer to the new list head
    1.70 - * @see ucx_list_prepend()
    1.71 - */
    1.72 -UcxList *ucx_list_prepend_once(UcxList *list, void *data,
    1.73 -        cmp_func cmpfnc, void *cmpdata);
    1.74 -
    1.75 -/**
    1.76 - * Inserts an element at the beginning of the list, if it is not present in
    1.77 - * the list, using a UcxAllocator.
    1.78 - * 
    1.79 - * <b>Note:</b> You should not try to store a freshly allocated object. Since
    1.80 - * it might be a duplicate, the memory allocated for that copy would be leaking
    1.81 - * afterwards.
    1.82 - * 
    1.83 - * <b>Deprecation notice:</b> This function is considered to do more harm than
    1.84 - * it adds usefulness and is going to be removed in a future UCX release.
    1.85 - * 
    1.86 - * @param allocator the allocator to use
    1.87 - * @param list the list where to prepend the data, or <code>NULL</code> to
    1.88 - * create a new list
    1.89 - * @param data the data to insert
    1.90 - * @param cmpfnc the compare function
    1.91 - * @param cmpdata additional data for the compare function
    1.92 - * @return a pointer to the new list head
    1.93 - * @see ucx_list_prepend_a()
    1.94 - */
    1.95 -UcxList *ucx_list_prepend_once_a(UcxAllocator *allocator,
    1.96 -        UcxList *list, void *data, cmp_func cmpfnc, void *cmpdata);
    1.97  
    1.98  /**
    1.99   * Inserts an element at the beginning of the list.

mercurial