]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: Remove unnecessary variable
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 23 Aug 2021 11:20:54 +0000 (14:20 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 24 Aug 2021 11:50:39 +0000 (14:50 +0300)
The variable was set and updated, but never read.

src/lib-storage/index/dbox-common/dbox-file.c

index aeb8a0988d891ce1597e3e3df5994b2215913d96..86b3543b71692f981e74545f59b80809312d2dfb 100644 (file)
@@ -95,7 +95,6 @@ void dbox_file_unref(struct dbox_file **_file)
 static int dbox_file_parse_header(struct dbox_file *file, const char *line)
 {
        const char *const *tmp, *value;
-       unsigned int pos;
        enum dbox_header_key key;
 
        file->file_version = *line - '0';
@@ -105,7 +104,6 @@ static int dbox_file_parse_header(struct dbox_file *file, const char *line)
                return -1;
        }
        line += 2;
-       pos = 2;
 
        file->msg_header_size = 0;
 
@@ -131,7 +129,6 @@ static int dbox_file_parse_header(struct dbox_file *file, const char *line)
                        file->create_time = (time_t)time;
                        break;
                }
-               pos += strlen(value) + 2;
        }
 
        if (file->msg_header_size == 0) {