imap-send.c: inline parse_imap_list() in parse_list()
The function is only called from here. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
Jan 15, 2013 at 09:06 UTC
81b38947c17d319204a1292d28c8608c7fc25319
1 file changed
+2
-7
imap-send.c
+2
-7
@@ -669,21 +669,16 @@ bail:
669
return -1;
670
}
671
672
-static struct imap_list *parse_imap_list(struct imap *imap, char **sp)
672
+static struct imap_list *parse_list(char **sp)
673
{
674
struct imap_list *head;
675
676
- if (!parse_imap_list_l(imap, sp, &head, 0))
676
+ if (!parse_imap_list_l(NULL, sp, &head, 0))
677
return head;
678
free_list(head);
679
return NULL;
680
}
681
682
-static struct imap_list *parse_list(char **sp)
683
-{
684
- return parse_imap_list(NULL, sp);
685
-}
686
-
682
static void parse_capability(struct imap *imap, char *cmd)
683
{
684
char *arg;