Skip to content

Commit 81b3894

Browse files
mhaggergitster
authored andcommitted
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>
1 parent 1efee7f commit 81b3894

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

imap-send.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -669,21 +669,16 @@ static int parse_imap_list_l(struct imap *imap, char **sp, struct imap_list **cu
669669
return -1;
670670
}
671671

672-
static struct imap_list *parse_imap_list(struct imap *imap, char **sp)
672+
static struct imap_list *parse_list(char **sp)
673673
{
674674
struct imap_list *head;
675675

676-
if (!parse_imap_list_l(imap, sp, &head, 0))
676+
if (!parse_imap_list_l(NULL, sp, &head, 0))
677677
return head;
678678
free_list(head);
679679
return NULL;
680680
}
681681

682-
static struct imap_list *parse_list(char **sp)
683-
{
684-
return parse_imap_list(NULL, sp);
685-
}
686-
687682
static void parse_capability(struct imap *imap, char *cmd)
688683
{
689684
char *arg;

0 commit comments

Comments
 (0)