dovecot-2.1: Removed unnecessary code.

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 8 22:42:44 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/06c9a46f35a8
changeset: 14074:06c9a46f35a8
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Feb 08 22:07:01 2012 +0200
description:
Removed unnecessary code.

diffstat:

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

diffs (55 lines):

diff -r a765e0a895a9 -r 06c9a46f35a8 src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c	Mon Feb 06 22:41:18 2012 +0200
+++ b/src/imap/imap-fetch-body.c	Wed Feb 08 22:07:01 2012 +0200
@@ -375,14 +375,6 @@
 	return fetch_data(ctx, body, fetch_size);
 }
 
-static void header_filter_eoh(struct message_header_line *hdr,
-			      bool *matched ATTR_UNUSED,
-			      struct imap_fetch_context *ctx)
-{
-	if (hdr != NULL && hdr->eoh)
-		ctx->cur_have_eoh = TRUE;
-}
-
 static int fetch_header_partial_from(struct imap_fetch_context *ctx,
 				     const struct imap_fetch_body_data *body,
 				     const char *header_section)
@@ -393,19 +385,16 @@
 
 	/* MIME, HEADER.FIELDS (list), HEADER.FIELDS.NOT (list) */
 
-	ctx->cur_have_eoh = FALSE;
 	if (strncmp(header_section, "HEADER.FIELDS ", 14) == 0) {
 		input = i_stream_create_header_filter(ctx->cur_input,
-						      HEADER_FILTER_INCLUDE,
-						      body->fields,
-						      body->fields_count,
-						      header_filter_eoh, ctx);
+					HEADER_FILTER_INCLUDE,
+					body->fields, body->fields_count,
+					null_header_filter_callback, NULL);
 	} else if (strncmp(header_section, "HEADER.FIELDS.NOT ", 18) == 0) {
 		input = i_stream_create_header_filter(ctx->cur_input,
-						      HEADER_FILTER_EXCLUDE,
-						      body->fields,
-						      body->fields_count,
-						      header_filter_eoh, ctx);
+					HEADER_FILTER_EXCLUDE,
+					body->fields, body->fields_count,
+					null_header_filter_callback, NULL);
 	} else {
 		i_error("BUG: Accepted invalid section from user: '%s'",
 			header_section);
diff -r a765e0a895a9 -r 06c9a46f35a8 src/imap/imap-fetch.h
--- a/src/imap/imap-fetch.h	Mon Feb 06 22:41:18 2012 +0200
+++ b/src/imap/imap-fetch.h	Wed Feb 08 22:07:01 2012 +0200
@@ -64,7 +64,6 @@
 	unsigned int seen_flags_changed:1;
 	unsigned int flags_show_only_seen_changes:1;
 	unsigned int update_partial:1;
-	unsigned int cur_have_eoh:1;
 	unsigned int cur_append_eoh:1;
 	unsigned int first:1;
 	unsigned int line_partial:1;


More information about the dovecot-cvs mailing list