removed unused function list_is_ptrin()
This commit is contained in:
parent
7e286fd610
commit
1e522d5baa
2 changed files with 0 additions and 13 deletions
|
@ -97,18 +97,6 @@ static list_t *list_last(list_t *list)
|
||||||
return(ptr);
|
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
|
/* Test for existence of a string in a list_t
|
||||||
*/
|
*/
|
||||||
int list_is_strin(char *needle, list_t *haystack)
|
int list_is_strin(char *needle, list_t *haystack)
|
||||||
|
|
|
@ -35,7 +35,6 @@ list_t *list_new();
|
||||||
void list_free(list_t* list);
|
void list_free(list_t* list);
|
||||||
list_t *list_add(list_t* list, void *data);
|
list_t *list_add(list_t* list, void *data);
|
||||||
int list_count(list_t* list);
|
int list_count(list_t* list);
|
||||||
int list_is_ptrin(void *needle, list_t *haystack);
|
|
||||||
int list_is_strin(char *needle, list_t *haystack);
|
int list_is_strin(char *needle, list_t *haystack);
|
||||||
void list_display(const char *title, list_t *list);
|
void list_display(const char *title, list_t *list);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue