1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 11:35:00 -05:00

removed unused function list_is_ptrin()

This commit is contained in:
Aurelien Foret 2005-05-01 20:51:01 +00:00
parent 7e286fd610
commit 1e522d5baa
2 changed files with 0 additions and 13 deletions

View File

@ -97,18 +97,6 @@ static list_t *list_last(list_t *list)
return(ptr);
}
int list_is_ptrin(void *needle, list_t *haystack)
{
list_t *lp;
for(lp = haystack; lp; lp = lp->next) {
if(lp->data == needle) {
return(1);
}
}
return(0);
}
/* Test for existence of a string in a list_t
*/
int list_is_strin(char *needle, list_t *haystack)

View File

@ -35,7 +35,6 @@ list_t *list_new();
void list_free(list_t* list);
list_t *list_add(list_t* list, void *data);
int list_count(list_t* list);
int list_is_ptrin(void *needle, list_t *haystack);
int list_is_strin(char *needle, list_t *haystack);
void list_display(const char *title, list_t *list);