]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed unneeded code.
authorTimo Sirainen <tss@iki.fi>
Wed, 1 Apr 2009 19:39:20 +0000 (15:39 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 1 Apr 2009 19:39:20 +0000 (15:39 -0400)
Based on Coccinelle output from Diego Liziero.

--HG--
branch : HEAD

src/lib-storage/index/index-fetch.c
src/plugins/imap-acl/imap-acl-plugin.c

index 4ea4739be37fc93a135cd26451238f3d00fe6cc7..58718122b58dc4c0833e8e59aeb45da96ba333b1 100644 (file)
@@ -46,7 +46,6 @@ bool index_storage_get_expunged_uids(struct mailbox *box, uint64_t modseq,
 #define EXPUNGE_MASK (MAIL_TRANSACTION_EXPUNGE | MAIL_TRANSACTION_EXTERNAL)
        struct index_mailbox *ibox = (struct index_mailbox *)box;
        struct mail_transaction_log_view *log_view;
-       const struct mail_index_header *hdr;
        const struct mail_transaction_header *thdr;
        const struct mail_transaction_expunge *rec, *end;
        const struct seq_range *uid_range;
@@ -66,7 +65,6 @@ bool index_storage_get_expunged_uids(struct mailbox *box, uint64_t modseq,
                return TRUE;
        }
 
-       hdr = mail_index_get_header(ibox->view);
        log_view = mail_transaction_log_view_open(ibox->index->log);
        if (mail_transaction_log_view_set(log_view, log_seq, log_offset,
                                          ibox->view->log_file_head_seq,
index 42cd2fd1c8926e4c0d3daa021c13e1989c01a8ae..32a32e01c217a8d0ce34a51e13951657f3f21457 100644 (file)
@@ -246,7 +246,6 @@ static bool cmd_getacl(struct client_command_context *cmd)
        struct mailbox *box;
        const char *mailbox;
        string_t *str;
-       unsigned int len;
        int ret;
 
        if (!client_read_string_args(cmd, 1, &mailbox)) {
@@ -261,7 +260,6 @@ static bool cmd_getacl(struct client_command_context *cmd)
        str = t_str_new(128);
        str_append(str, "* ACL ");
        imap_quote_append_string(str, mailbox, FALSE);
-       len = str_len(str);
 
        storage = mailbox_get_storage(box);
        backend = acl_storage_get_backend(storage);