Removed some unnecessary code. HEAD
authorTimo Sirainen <tss@iki.fi>
Thu, 19 Mar 2009 19:21:09 -0400
branchHEAD
changeset 884494dbe538cdb7
parent 8843 747a0c3199bf
child 8845 78586322a1d2
Removed some unnecessary code.
Patch by Diego Liziero.
src/lib-mail/message-size.c
src/lib-storage/index/maildir/maildir-uidlist.c
     1.1 --- a/src/lib-mail/message-size.c	Thu Mar 19 19:20:48 2009 -0400
     1.2 +++ b/src/lib-mail/message-size.c	Thu Mar 19 19:21:09 2009 -0400
     1.3 @@ -70,14 +70,13 @@
     1.4  {
     1.5  	const unsigned char *msg;
     1.6  	size_t i, size, missing_cr_count;
     1.7 -	bool last_cr;
     1.8  	int ret = 0;
     1.9  
    1.10  	memset(body, 0, sizeof(struct message_size));
    1.11  	if (has_nuls != NULL)
    1.12  		*has_nuls = FALSE;
    1.13  
    1.14 -	missing_cr_count = 0; last_cr = FALSE;
    1.15 +	missing_cr_count = 0;
    1.16  	if ((ret = i_stream_read_data(input, &msg, &size, 0)) <= 0)
    1.17  		return ret < 0 && input->stream_errno != 0 ? -1 : 0;
    1.18  
     2.1 --- a/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Mar 19 19:20:48 2009 -0400
     2.2 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Mar 19 19:21:09 2009 -0400
     2.3 @@ -924,13 +924,12 @@
     2.4  	const struct maildir_uidlist_rec *rec;
     2.5  	unsigned int idx;
     2.6  	const unsigned char *p;
     2.7 -	const char *value;
     2.8  
     2.9  	rec = maildir_uidlist_lookup_rec(uidlist, uid, &idx);
    2.10  	if (rec == NULL || rec->extensions == NULL)
    2.11  		return NULL;
    2.12  
    2.13 -	p = rec->extensions; value = NULL;
    2.14 +	p = rec->extensions;
    2.15  	while (*p != '\0') {
    2.16  		/* <key><value>\0 */
    2.17  		if (*p == (char)key)