]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't enforce bizarre assertion that lists need unique user data
authorRay Strode <rstrode@redhat.com>
Tue, 5 Aug 2008 21:19:36 +0000 (17:19 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 5 Aug 2008 21:28:22 +0000 (17:28 -0400)
src/libply/ply-list.c

index fc7739e510311befe59f07cb30e96894c2c20d7c..1e5cd98bbfa540a82e14625e15bdc8946f8bbf6a 100644 (file)
@@ -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);
 }