Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=ec9e23ad73f34605b8e1f625fc2ba4b4976ecbcb

commit ec9e23ad73f34605b8e1f625fc2ba4b4976ecbcb
Author: Michel Hermier <[email protected]>
Date:   Thu May 23 12:26:27 2013 +0200

pacman: Remove list_is_strin.

diff --git a/src/pacman-g2/list.c b/src/pacman-g2/list.c
index 732cc98..f0fdb03 100644
--- a/src/pacman-g2/list.c
+++ b/src/pacman-g2/list.c
@@ -30,20 +30,6 @@

extern int maxcols;

-/* Test for existence of a string in a list_t
- */
-int list_is_strin(char *needle, list_t *haystack)
-{
-       list_t *lp;
-
-       for(lp = haystack; lp; lp = lp->next) {
-               if(lp->data && !strcmp(lp->data, needle)) {
-                       return(1);
-               }
-       }
-       return(0);
-}
-
/* Display the content of a list_t struct of strings
*/

diff --git a/src/pacman-g2/list.h b/src/pacman-g2/list.h
index eef48c0..2ea634c 100644
--- a/src/pacman-g2/list.h
+++ b/src/pacman-g2/list.h
@@ -32,7 +32,6 @@ typedef FList list_t;
#define FREELISTPTR(p) do { if(p) { f_list_delete (p, NULL, NULL); p = NULL; } 
} while (0)

#define list_add f_list_append
-int list_is_strin(char *needle, list_t *haystack);
void list_display(const char *title, list_t *list);

#endif /* _PM_LIST_H */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to