X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=idlist.c;h=a2dfe3a65984a9514b7936e34e45389414ef17be;hb=98cfcef26048bba06975e68a1aad05a8bac0d65d;hp=d886de6b0756227fbb6954839f8ed2bd7adeef0c;hpb=d52b3f476e77703aefede89f6c25218ac5289bc3;p=~andy%2Ffetchmail diff --git a/idlist.c b/idlist.c index d886de6b..a2dfe3a6 100644 --- a/idlist.c +++ b/idlist.c @@ -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,