]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Remove noop function mail_index_modseq_expunge()
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Wed, 24 Apr 2024 15:51:37 +0000 (17:51 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 6 May 2024 07:26:06 +0000 (07:26 +0000)
src/lib-index/mail-index-modseq.c
src/lib-index/mail-index-modseq.h
src/lib-index/mail-index-sync-update.c

index f3e3492296ce560b98c41f3ed2eae5f58442d0b6..14dd3d10840c490bff466616a91c49d77b39bad1 100644 (file)
@@ -455,11 +455,6 @@ void mail_index_modseq_append(struct mail_index_modseq_sync *ctx, uint32_t seq)
        (void)mail_index_modseq_update_to_highest(ctx, seq, seq);
 }
 
-void mail_index_modseq_expunge(struct mail_index_modseq_sync *ctx ATTR_UNUSED,
-                              uint32_t seq1 ATTR_UNUSED, uint32_t seq2 ATTR_UNUSED)
-{
-}
-
 void mail_index_modseq_update_flags(struct mail_index_modseq_sync *ctx,
                                    enum mail_flags flags_mask ATTR_UNUSED,
                                    uint32_t seq1, uint32_t seq2)
index cd57faecf605f8198b81e3f7162c989dff240f18..e3fc3fceac172dd22730482db4227a66de40d684 100644 (file)
@@ -37,8 +37,6 @@ void mail_index_modseq_sync_end(struct mail_index_modseq_sync **ctx);
 
 void mail_index_modseq_hdr_update(struct mail_index_modseq_sync *ctx);
 void mail_index_modseq_append(struct mail_index_modseq_sync *ctx, uint32_t seq);
-void mail_index_modseq_expunge(struct mail_index_modseq_sync *ctx,
-                              uint32_t seq1, uint32_t seq2);
 void mail_index_modseq_update_flags(struct mail_index_modseq_sync *ctx,
                                    enum mail_flags flags_mask,
                                    uint32_t seq1, uint32_t seq2);
index 9e068da32628f85ad3e9cdcfa3059f4e1eae159e..01a6691e42e63df1622e4b821558eacd4913747b 100644 (file)
@@ -286,7 +286,6 @@ sync_expunge_range(struct mail_index_sync_map_ctx *ctx, const ARRAY_TYPE(seq_ran
                seq_count = seq2 - seq1 + 1;
                map->rec_map->records_count -= seq_count;
                map->hdr.messages_count -= seq_count;
-               mail_index_modseq_expunge(ctx->modseq_ctx, seq1, seq2);
                prev_seq2 = seq2;
        }
        /* Final stragglers */