]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: mail_index_sync_update_mailbox_offset() - Remove unnecessary code
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 10 Jun 2019 19:58:44 +0000 (22:58 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 20 Jun 2019 07:25:34 +0000 (07:25 +0000)
The function call has no side effects, and the return values aren't used.

src/lib-index/mail-index-sync.c

index bdc0f399043928a6d0df9301a1a6d82b320569e4..656a804d30e8d9d9ca4a71450c931e6564514150 100644 (file)
@@ -787,8 +787,6 @@ mail_index_sync_update_mailbox_offset(struct mail_index_sync_ctx *ctx)
                /* Everything wasn't synced. This usually means that syncing
                   was used for locking and nothing was synced. Don't update
                   tail offset. */
-               mail_transaction_log_view_get_prev_pos(ctx->view->log_view,
-                                                      &seq, &offset);
                return;
        }
        /* synced everything, but we might also have committed new