diff --git a/tommyds/tommylist.h b/tommyds/tommylist.h index d88cee7b..368606a9 100644 --- a/tommyds/tommylist.h +++ b/tommyds/tommylist.h @@ -226,24 +226,6 @@ tommy_inline void tommy_list_insert_tail(tommy_list* list, tommy_node* node, voi node->data = data; } -/** \internal - * Removes an element from the head of a not empty list. - * \param list The list. The list cannot be empty. - * \return The node removed. - */ -tommy_inline tommy_node* tommy_list_remove_head_not_empty(tommy_list* list) -{ - tommy_node* head = tommy_list_head(list); - - /* remove from the "circular" prev list */ - head->next->prev = head->prev; - - /* remove from the "0 terminated" next list */ - *list = head->next; /* the new head, in case 0 */ - - return head; -} - /** * Removes an element from the list. * You must already have the address of the element to remove.