Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-05-01 20:51:01 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-05-01 20:51:01 +0000
commit1e522d5baaf93b15dc9c0c88b2430eac3540a95c (patch)
tree4059d46014512b4d67fd85a9f312d662e3e037c0 /src
parent7e286fd610338e373ba567c959a91cacad1b40c8 (diff)
removed unused function list_is_ptrin()
Diffstat (limited to 'src')
-rw-r--r--src/pacman/list.c12
-rw-r--r--src/pacman/list.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/pacman/list.c b/src/pacman/list.c
index 1d32b0b8..9f58c3ee 100644
--- a/src/pacman/list.c
+++ b/src/pacman/list.c
@@ -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)
diff --git a/src/pacman/list.h b/src/pacman/list.h
index 845ca5c8..ca738f9e 100644
--- a/src/pacman/list.h
+++ b/src/pacman/list.h
@@ -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);