]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: maildir - Remove unnecessary variable
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 21 May 2018 16:38:29 +0000 (19:38 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 4 Jun 2018 10:08:05 +0000 (13:08 +0300)
src/lib-storage/index/maildir/maildir-save.c

index 3aac4f772fd7140378c618599d719d41ed19ee39..718ac39bbd74d46da097410691b7d3f89ae8e833 100644 (file)
@@ -146,7 +146,6 @@ maildir_save_add(struct mail_save_context *_ctx, const char *tmp_fname,
        struct mail_save_data *mdata = &_ctx->data;
        struct maildir_filename *mf;
        struct istream *input;
-       unsigned int keyword_count;
 
        i_assert(*tmp_fname != '\0');
 
@@ -161,8 +160,6 @@ maildir_save_add(struct mail_save_context *_ctx, const char *tmp_fname,
        /* now, we want to be able to rollback the whole append session,
           so we'll just store the name of this temp file and move it later
           into new/ or cur/. */
-       /* @UNSAFE */
-       keyword_count = mdata->keywords == NULL ? 0 : mdata->keywords->count;
        mf = p_new(ctx->pool, struct maildir_filename, 1);
        mf->tmp_name = mf->dest_basename = p_strdup(ctx->pool, tmp_fname);
        mf->flags = mdata->flags;