From 359ffc026b8200f69001d6a9b4b0894bf8c4fdb2 Mon Sep 17 00:00:00 2001 From: Jan Radon Date: Fri, 15 Sep 2017 18:52:18 +0200 Subject: [PATCH] #63 cleanup removed unused variables, removed some debug messages, removed warnings. --- src/storage-rbox/rbox-mail.cpp | 4 ---- src/storage-rbox/rbox-save.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/storage-rbox/rbox-mail.cpp b/src/storage-rbox/rbox-mail.cpp index 74693e5c..63628d90 100644 --- a/src/storage-rbox/rbox-mail.cpp +++ b/src/storage-rbox/rbox-mail.cpp @@ -268,7 +268,6 @@ static int rbox_get_mail_size(struct mail *_mail, uoff_t *size_r) { FUNC_START(); struct rbox_storage *r_storage = (struct rbox_storage *)_mail->box->storage; struct rbox_mail *rmail = (struct rbox_mail *)_mail; - struct index_mail_data *data = &rmail->imail.data; uint64_t file_size = -1; time_t time = 0; @@ -516,7 +515,6 @@ static void rbox_mail_close(struct mail *_mail) { rmail_->mail_object = NULL; } - i_debug("INDEX_ physical size : %d", rmail_->imail.data.physical_size); index_mail_close(_mail); } @@ -526,10 +524,8 @@ static void rbox_index_mail_set_seq(struct mail *_mail, uint32_t seq, bool savin index_mail_set_seq(_mail, seq, saving); if (rmail_->mail_object == NULL) { - // init new mail object and load oid and uuid from index rmail_->mail_object = new RadosMailObject(); rbox_get_index_record(_mail); - i_debug("rbox_mail_get_stream new rados_object %s", rmail_->mail_object->get_oid().c_str()); } } diff --git a/src/storage-rbox/rbox-save.cpp b/src/storage-rbox/rbox-save.cpp index dcbbbe3b..95ea674d 100644 --- a/src/storage-rbox/rbox-save.cpp +++ b/src/storage-rbox/rbox-save.cpp @@ -184,7 +184,7 @@ int rbox_save_begin(struct mail_save_context *_ctx, struct istream *input) { // make 100% sure, buffer is empty! buffer_free(&buffer); } - r_ctx->current_object->set_mail_buffer(reinterpret_cast(buffer_create_dynamic(default_pool, 1024))); + r_ctx->current_object->set_mail_buffer(reinterpret_cast(buffer_create_dynamic(default_pool, 1024))); // r_ctx->mail_buffer = ; if (r_ctx->current_object->get_mail_buffer() == NULL) { FUNC_END_RET("ret == -1");