From: Ray Strode Date: Tue, 5 Aug 2008 21:19:36 +0000 (-0400) Subject: Don't enforce bizarre assertion that lists need unique user data X-Git-Tag: 0.6.0~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=334300f89d3377cdf7ad11021664ed0eec500d55;p=thirdparty%2Fplymouth.git Don't enforce bizarre assertion that lists need unique user data --- 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); }