Skip to content

Commit

Permalink
#63 cleanup
Browse files Browse the repository at this point in the history
removed unused variables, removed some debug messages, removed warnings.
  • Loading branch information
jrse committed Sep 15, 2017
1 parent 2663a27 commit 359ffc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/storage-rbox/rbox-mail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}

Expand All @@ -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());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/storage-rbox/rbox-save.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char *>(buffer_create_dynamic(default_pool, 1024)));
r_ctx->current_object->set_mail_buffer(reinterpret_cast<char *>(buffer_create_dynamic(default_pool, 1024)));
// r_ctx->mail_buffer = ;
if (r_ctx->current_object->get_mail_buffer() == NULL) {
FUNC_END_RET("ret == -1");
Expand Down

0 comments on commit 359ffc0

Please sign in to comment.