aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-12 21:01:50 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-12 21:01:50 +0000
commit52281a10aad8937cdaf5ccd0cbf13b54617076de (patch)
treec02676ea73d80da5c06589ae063c6fbafe99b363 /lib
parent66aa9bf52d3ea56d7c5dea8c4c6a2e27f0c8db21 (diff)
email: Post optimisation of endofresp() tidy up
Removed unnecessary end of line check and return.
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c3
-rw-r--r--lib/pop3.c3
-rw-r--r--lib/smtp.c3
3 files changed, 0 insertions, 9 deletions
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--;
}