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:
harti 2004-12-08 16:50:14 +00:00
parent bcfafac95e
commit d9ec783dcb

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);
}