diff options
Diffstat (limited to 'lib/linklist.h')
| -rw-r--r-- | lib/linklist.h | 30 | 
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/linklist.h b/lib/linklist.h index f5cd44efb0..53a5012e68 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -236,20 +236,6 @@ extern void list_sort(struct list *list,  		      int (*cmp)(const void **, const void **));  /* - * The usage of list_delete is being transitioned to pass in - * the double pointer to remove use after free's. - * list_free usage is deprecated, it leads to memory leaks - * of the linklist nodes.  Please use list_delete_and_null - * - * In Oct of 2018, rename list_delete_and_null to list_delete - * and remove list_delete_original and the list_delete #define - * Additionally remove list_free entirely - */ -#if CONFDATE > 20181001 -CPP_NOTICE("list_delete without double pointer is deprecated, please fixup") -#endif - -/*   * Delete a list and NULL its pointer.   *   * If non-null, list->del is called with each data element. @@ -261,22 +247,6 @@ CPP_NOTICE("list_delete without double pointer is deprecated, please fixup")  extern void list_delete_and_null(struct list **plist);  /* - * Delete a list. - * - * If non-null, list->del is called with each data element. - * - * plist - *    pointer to list pointer - */ -extern void list_delete_original(struct list *list); -#define list_delete(X)                                                         \ -	list_delete_original((X))                                              \ -		CPP_WARN("Please transition to using list_delete_and_null") -#define list_free(X)                                                           \ -	list_delete_original((X))                                              \ -		CPP_WARN("Please transition tousing list_delete_and_null") - -/*   * Delete all nodes from a list without deleting the list itself.   *   * If non-null, list->del is called with each data element.  | 
