From: Michael Haggerty Date: Tue, 15 Jan 2013 08:06:25 +0000 (+0100) Subject: imap-send.c: inline parse_imap_list() in parse_list() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81b38947c17d319204a1292d28c8608c7fc25319;p=git.git imap-send.c: inline parse_imap_list() in parse_list() The function is only called from here. Signed-off-by: Michael Haggerty Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/imap-send.c b/imap-send.c index 131325a31..0d1f87a65 100644 --- a/imap-send.c +++ b/imap-send.c @@ -669,21 +669,16 @@ bail: return -1; } -static struct imap_list *parse_imap_list(struct imap *imap, char **sp) +static struct imap_list *parse_list(char **sp) { struct imap_list *head; - if (!parse_imap_list_l(imap, sp, &head, 0)) + if (!parse_imap_list_l(NULL, sp, &head, 0)) return head; free_list(head); return NULL; } -static struct imap_list *parse_list(char **sp) -{ - return parse_imap_list(NULL, sp); -} - static void parse_capability(struct imap *imap, char *cmd) { char *arg;