dovecot-2.2: imap: Removed unnecessary code.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 21 21:58:53 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/3a8ada7302a3
changeset: 14624:3a8ada7302a3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 21 21:58:48 2012 +0300
description:
imap: Removed unnecessary code.

diffstat:

 src/imap/imap-fetch-body.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (27 lines):

diff -r df8ba29d9eb3 -r 3a8ada7302a3 src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c	Thu Jun 21 21:52:56 2012 +0300
+++ b/src/imap/imap-fetch-body.c	Thu Jun 21 21:58:48 2012 +0300
@@ -24,7 +24,6 @@
 	struct imap_msgpart *msgpart;
 
 	unsigned int partial:1;
-	unsigned int peek:1;
 };
 
 static void fetch_read_error(struct imap_fetch_context *ctx)
@@ -243,13 +242,10 @@
 
 	body = p_new(ctx->fetch_ctx->pool, struct imap_fetch_body_data, 1);
 
-	if (strncmp(p, ".PEEK", 5) == 0) {
-		body->peek = TRUE;
+	if (strncmp(p, ".PEEK", 5) == 0)
 		p += 5;
-	} else {
+	else
 		ctx->fetch_ctx->flags_update_seen = TRUE;
-	}
-
 	if (*p != '[') {
 		ctx->error = "Invalid BODY[..] parameter: Missing '['";
 		return FALSE;


More information about the dovecot-cvs mailing list