Kaydet (Commit) 2fcd82ae authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: unused listPositionAt

üst 75b074f7
......@@ -66,8 +66,6 @@ extern "C"
int listAtLast(list);
int listPosition(list); /* Expensive! */
#endif
/*- search */
int listFind(list, void *); /* Returns true/false */
/*- positioning functions */
/*- return the number of elements by which the current position in the list changes */
......
......@@ -140,24 +140,6 @@ int listIsEmpty(list this)
return this->aCount == 0;
}
int listFind(list this, void *el)
{
lnode *ptr;
assert(this != 0);
ptr = this->head;
while (ptr) {
if (ptr->value == el) {
this->cptr = ptr;
return 1;
}
ptr = ptr->next;
}
return 0;
}
int listNext(list this)
{
return listSkipForward(this, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment