From: Timo Sirainen Date: Wed, 1 Apr 2009 19:39:20 +0000 (-0400) Subject: Removed unneeded code. X-Git-Tag: 1.2.rc1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03c26eb33d8a7c908ead9579dbb2272daaf77cc7;p=thirdparty%2Fdovecot%2Fcore.git Removed unneeded code. Based on Coccinelle output from Diego Liziero. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-fetch.c b/src/lib-storage/index/index-fetch.c index 4ea4739be3..58718122b5 100644 --- a/src/lib-storage/index/index-fetch.c +++ b/src/lib-storage/index/index-fetch.c @@ -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, diff --git a/src/plugins/imap-acl/imap-acl-plugin.c b/src/plugins/imap-acl/imap-acl-plugin.c index 42cd2fd1c8..32a32e01c2 100644 --- a/src/plugins/imap-acl/imap-acl-plugin.c +++ b/src/plugins/imap-acl/imap-acl-plugin.c @@ -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);