From e0e7a74bde52a1aa02d1da758128722598fb6dd8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 25 Aug 2019 18:52:53 +0200 Subject: Align with legacy_6x. * Normalize include order. * Backport missed bug fixes. * Remove dead code. --- idlist.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'idlist.c') diff --git a/idlist.c b/idlist.c index d886de6b..379073fd 100644 --- a/idlist.c +++ b/idlist.c @@ -5,6 +5,7 @@ */ #include "config.h" +#include "fetchmail.h" #include #include @@ -18,7 +19,6 @@ #include #endif -#include "fetchmail.h" /** Save string \a str to idlist \a idl with status \a status. * \return Pointer to the last element of the list to help the quick, @@ -82,21 +82,6 @@ void save_str_pair(struct idlist **idl, const char *str1, const char *str2) (*end)->next = (struct idlist *)NULL; } -#ifdef __UNUSED__ -void free_str_pair_list(struct idlist **idl) -/* free the given ID pair list */ -{ - if (*idl == (struct idlist *)NULL) - return; - - free_idpair_list(&(*idl)->next); - free ((*idl)->id); - free ((*idl)->val.id2); - free(*idl); - *idl = (struct idlist *)NULL; -} -#endif - /** Check if ID \a str is in idlist \a idl. \return idlist entry if found, * NULL if not found. */ struct idlist *str_in_list(struct idlist **idl, const char *str, -- cgit v1.2.3