src/cx/list.h

changeset 474
9c1fccda16bc
parent 469
0458bff0b1cd
child 484
9e6900b1cf9d
--- a/src/cx/list.h	Fri Oct 08 19:47:31 2021 +0200
+++ b/src/cx/list.h	Sat Oct 09 11:12:48 2021 +0200
@@ -84,11 +84,6 @@
     size_t (*find)(cx_list_s *list, void *elem);
 
     /**
-     * Member function for retrieving the last element.
-     */
-    void *(*last)(cx_list_s *list);
-
-    /**
      * Member function for sorting the list in place.
      */
     void (*sort)(cx_list_s *list);
@@ -200,20 +195,6 @@
 }
 
 /**
- * Returns a pointer to the last element of the list.
- *
- * This is effectively the same as cxListAt() with \c index=size-1, but
- * this implementation may be more efficient depending on the list structure
- * and the conrecte implementation of cxListAt().
- *
- * @param list the list
- * @return a pointer to the last element or \c NULL if the list is empty
- */
-static inline void *cxListLast(CxList list) {
-    return list->cl->last(list);
-}
-
-/**
  * Sorts the list in place.
  *
  * \remark The underlying sort algorithm is implementation defined.

mercurial