]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: Removed unused code.
authorTimo Sirainen <tss@iki.fi>
Mon, 13 Jan 2014 20:58:13 +0000 (15:58 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 13 Jan 2014 20:58:13 +0000 (15:58 -0500)
src/lib-storage/index/dbox-common/dbox-file.h
src/lib-storage/index/dbox-multi/mdbox-file.c

index 618206635f8bef5c73a0980d8ca03229f223c155..107bff3d2b04b19836905e0a60ae269f76d0f77b 100644 (file)
@@ -121,7 +121,6 @@ struct dbox_file {
        uoff_t metadata_read_offset;
 
        unsigned int appending:1;
-       unsigned int deleted:1;
        unsigned int corrupted:1;
 };
 
index 1400077a7d2b662364d8aed479809038daee046e..cb296d2e79d3d923da1bd3ee0b184263779e46f9 100644 (file)
@@ -278,7 +278,7 @@ void mdbox_file_unrefed(struct dbox_file *file)
 
        if (mfile->file_id != 0) {
                count = array_count(&mfile->storage->open_files);
-               if (!file->deleted && count <= MDBOX_MAX_OPEN_UNUSED_FILES) {
+               if (count <= MDBOX_MAX_OPEN_UNUSED_FILES) {
                        /* we can leave this file open for now */
                        mdbox_file_close_later(mfile);
                        return;