Removed unneeded code. HEAD
authorTimo Sirainen <tss@iki.fi>
Wed, 01 Apr 2009 15:39:20 -0400
branchHEAD
changeset 8884ec8e679294d0
parent 8883 5361cb6afe9e
child 8885 5e513d6612e0
Removed unneeded code.
Based on Coccinelle output from Diego Liziero.
src/lib-storage/index/index-fetch.c
src/plugins/imap-acl/imap-acl-plugin.c
     1.1 --- a/src/lib-storage/index/index-fetch.c	Wed Apr 01 13:13:04 2009 -0400
     1.2 +++ b/src/lib-storage/index/index-fetch.c	Wed Apr 01 15:39:20 2009 -0400
     1.3 @@ -46,7 +46,6 @@
     1.4  #define EXPUNGE_MASK (MAIL_TRANSACTION_EXPUNGE | MAIL_TRANSACTION_EXTERNAL)
     1.5  	struct index_mailbox *ibox = (struct index_mailbox *)box;
     1.6  	struct mail_transaction_log_view *log_view;
     1.7 -	const struct mail_index_header *hdr;
     1.8  	const struct mail_transaction_header *thdr;
     1.9  	const struct mail_transaction_expunge *rec, *end;
    1.10  	const struct seq_range *uid_range;
    1.11 @@ -66,7 +65,6 @@
    1.12  		return TRUE;
    1.13  	}
    1.14  
    1.15 -	hdr = mail_index_get_header(ibox->view);
    1.16  	log_view = mail_transaction_log_view_open(ibox->index->log);
    1.17  	if (mail_transaction_log_view_set(log_view, log_seq, log_offset,
    1.18  					  ibox->view->log_file_head_seq,
     2.1 --- a/src/plugins/imap-acl/imap-acl-plugin.c	Wed Apr 01 13:13:04 2009 -0400
     2.2 +++ b/src/plugins/imap-acl/imap-acl-plugin.c	Wed Apr 01 15:39:20 2009 -0400
     2.3 @@ -246,7 +246,6 @@
     2.4  	struct mailbox *box;
     2.5  	const char *mailbox;
     2.6  	string_t *str;
     2.7 -	unsigned int len;
     2.8  	int ret;
     2.9  
    2.10  	if (!client_read_string_args(cmd, 1, &mailbox)) {
    2.11 @@ -261,7 +260,6 @@
    2.12  	str = t_str_new(128);
    2.13  	str_append(str, "* ACL ");
    2.14  	imap_quote_append_string(str, mailbox, FALSE);
    2.15 -	len = str_len(str);
    2.16  
    2.17  	storage = mailbox_get_storage(box);
    2.18  	backend = acl_storage_get_backend(storage);