From 334300f89d3377cdf7ad11021664ed0eec500d55 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 5 Aug 2008 17:19:36 -0400 Subject: [PATCH] Don't enforce bizarre assertion that lists need unique user data --- src/libply/ply-list.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libply/ply-list.c b/src/libply/ply-list.c index fc7739e5..1e5cd98b 100644 --- a/src/libply/ply-list.c +++ b/src/libply/ply-list.c @@ -215,8 +215,6 @@ ply_list_unlink_node (ply_list_t *list, if (node == NULL) return; - assert (ply_list_find_node (list, node->data) == node); - node_before = node->previous; node_after = node->next; @@ -237,16 +235,13 @@ ply_list_unlink_node (ply_list_t *list, list->number_of_nodes--; assert (ply_list_find_node (list, node->data) != node); - assert (ply_list_find_node (list, node->data) == NULL); } void ply_list_remove_node (ply_list_t *list, ply_list_node_t *node) { - assert (ply_list_find_node (list, node->data) != NULL); ply_list_unlink_node (list, node); - assert (ply_list_find_node (list, node->data) == NULL); ply_list_node_free (node); } -- 2.47.3