diff -r 1bd4b8c28722 -r 9c1fccda16bc src/cx/list.h --- 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.