]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed some unnecessary code.
authorTimo Sirainen <tss@iki.fi>
Thu, 19 Mar 2009 23:21:09 +0000 (19:21 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 19 Mar 2009 23:21:09 +0000 (19:21 -0400)
Patch by Diego Liziero.

--HG--
branch : HEAD

src/lib-mail/message-size.c
src/lib-storage/index/maildir/maildir-uidlist.c

index d559d609ad26e955fef40db2cd7073961929abb3..dbffae60dd34ad5f8b60cde17ba7a81d4d53b4f7 100644 (file)
@@ -70,14 +70,13 @@ int message_get_body_size(struct istream *input, struct message_size *body,
 {
        const unsigned char *msg;
        size_t i, size, missing_cr_count;
-       bool last_cr;
        int ret = 0;
 
        memset(body, 0, sizeof(struct message_size));
        if (has_nuls != NULL)
                *has_nuls = FALSE;
 
-       missing_cr_count = 0; last_cr = FALSE;
+       missing_cr_count = 0;
        if ((ret = i_stream_read_data(input, &msg, &size, 0)) <= 0)
                return ret < 0 && input->stream_errno != 0 ? -1 : 0;
 
index 7d523202467d9e92cc81713dccdfed059ac2ee83..b6d409385e7ca0d37cb2e6366d5fa1d83b636bf4 100644 (file)
@@ -924,13 +924,12 @@ maildir_uidlist_lookup_ext(struct maildir_uidlist *uidlist, uint32_t uid,
        const struct maildir_uidlist_rec *rec;
        unsigned int idx;
        const unsigned char *p;
-       const char *value;
 
        rec = maildir_uidlist_lookup_rec(uidlist, uid, &idx);
        if (rec == NULL || rec->extensions == NULL)
                return NULL;
 
-       p = rec->extensions; value = NULL;
+       p = rec->extensions;
        while (*p != '\0') {
                /* <key><value>\0 */
                if (*p == (char)key)