Don't check the return code from Lst_Remove. There is no way

that the list's first element is not on the list.
This commit is contained in:
Hartmut Brandt 2004-12-08 16:50:14 +00:00
parent 2e022816d8
commit 74c71bfc19

View File

@ -75,9 +75,6 @@ Lst_DeQueue(Lst *l)
}
rd = tln->datum;
if (Lst_Remove(l, tln) == FAILURE) {
return (NULL);
} else {
return (rd);
}
Lst_Remove(l, tln);
return (rd);
}