dovecot: Removed unused/unneeded code.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 15 20:53:24 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/5378991bed09
changeset: 5746:5378991bed09
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 15 20:53:18 2007 +0300
description:
Removed unused/unneeded code.
diffstat:
2 files changed, 4 insertions(+), 15 deletions(-)
src/lib-index/mail-index-sync-private.h | 1 -
src/lib-index/mail-index-sync-update.c | 18 ++++--------------
diffs (43 lines):
diff -r 702aa70c9f34 -r 5378991bed09 src/lib-index/mail-index-sync-private.h
--- a/src/lib-index/mail-index-sync-private.h Fri Jun 15 19:26:01 2007 +0300
+++ b/src/lib-index/mail-index-sync-private.h Fri Jun 15 20:53:18 2007 +0300
@@ -40,7 +40,6 @@ struct mail_index_sync_map_ctx {
unsigned int expunge_handlers_used:1;
unsigned int cur_ext_ignore:1;
unsigned int unreliable_flags:1;
- unsigned int sync_only_external:1;
};
extern struct mail_transaction_map_functions mail_index_map_sync_funcs;
diff -r 702aa70c9f34 -r 5378991bed09 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Fri Jun 15 19:26:01 2007 +0300
+++ b/src/lib-index/mail-index-sync-update.c Fri Jun 15 20:53:18 2007 +0300
@@ -32,24 +32,14 @@ mail_index_sync_update_log_offset(struct
prev_offset = ctx->ext_intro_offset;
}
- if (!ctx->sync_only_external) { // FIXME: never happens
- i_assert(prev_offset >= map->hdr.log_file_index_int_offset ||
- prev_seq > map->hdr.log_file_seq);
- map->hdr.log_file_index_int_offset = prev_offset;
- } else if (map->hdr.log_file_seq != prev_seq) {
- /* log sequence changed. update internal offset to
- beginning of the new file. */
- i_assert(map->hdr.log_file_index_int_offset ==
- ctx->view->index->log->head->hdr.prev_file_offset);
- map->hdr.log_file_index_int_offset =
- ctx->view->index->log->head->hdr.hdr_size;
- }
+ i_assert(prev_offset >= map->hdr.log_file_index_int_offset ||
+ prev_seq > map->hdr.log_file_seq);
+ map->hdr.log_file_index_int_offset = prev_offset;
/* we might be in the middle of syncing internal transactions, with
some of the following external transactions already synced. */
i_assert(prev_seq > map->hdr.log_file_seq ||
- prev_offset >= map->hdr.log_file_index_ext_offset ||
- (!eol && !ctx->sync_only_external));
+ prev_offset >= map->hdr.log_file_index_ext_offset || !eol);
if (map->hdr.log_file_seq != prev_seq ||
prev_offset > map->hdr.log_file_index_ext_offset) {
map->hdr.log_file_seq = prev_seq;
More information about the dovecot-cvs
mailing list