From 52281a10aad8937cdaf5ccd0cbf13b54617076de Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Tue, 12 Feb 2013 21:01:50 +0000 Subject: email: Post optimisation of endofresp() tidy up Removed unnecessary end of line check and return. --- lib/imap.c | 3 --- lib/pop3.c | 3 --- lib/smtp.c | 3 --- 3 files changed, 9 deletions(-) (limited to 'lib') diff --git a/lib/imap.c b/lib/imap.c index c4bddab7a..320101b5d 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -363,9 +363,6 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len, (*line == ' ' || *line == '\t' || *line == '\r' || *line == '\n')) { - if(*line == '\n') - return FALSE; - line++; len--; } diff --git a/lib/pop3.c b/lib/pop3.c index 263d8703a..3fbe14e61 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -293,9 +293,6 @@ static bool pop3_endofresp(struct connectdata *conn, char *line, size_t len, (*line == ' ' || *line == '\t' || *line == '\r' || *line == '\n')) { - if(*line == '\n') - return FALSE; - line++; len--; } diff --git a/lib/smtp.c b/lib/smtp.c index 68dbf9a26..456d986aa 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -254,9 +254,6 @@ static bool smtp_endofresp(struct connectdata *conn, char *line, size_t len, (*line == ' ' || *line == '\t' || *line == '\r' || *line == '\n')) { - if(*line == '\n') - return FALSE; - line++; len--; } -- cgit v1.2.3