From: Timo Sirainen Date: Mon, 23 Aug 2021 11:20:54 +0000 (+0300) Subject: dbox: Remove unnecessary variable X-Git-Tag: 2.3.17~173 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c4077a8439f587a806cff137377bf83affb6fad;p=thirdparty%2Fdovecot%2Fcore.git dbox: Remove unnecessary variable The variable was set and updated, but never read. --- diff --git a/src/lib-storage/index/dbox-common/dbox-file.c b/src/lib-storage/index/dbox-common/dbox-file.c index aeb8a0988d..86b3543b71 100644 --- a/src/lib-storage/index/dbox-common/dbox-file.c +++ b/src/lib-storage/index/dbox-common/dbox-file.c @@ -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) {