]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove unused
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 24 Nov 2023 15:30:01 +0000 (15:30 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 24 Nov 2023 15:30:01 +0000 (15:30 +0000)
src/libmime/mime_headers.c

index e7b9c0c9b485aefb1ec10269caf1da492be14b99..e0cf42e0a781bd3f5eafc61e905f25078274a4c7 100644 (file)
@@ -1127,7 +1127,6 @@ void rspamd_message_set_modified_header(struct rspamd_task *task,
                 */
                hdr_elt->flags |= RSPAMD_HEADER_MODIFIED;
                hdr_elt->modified_chain = NULL;
-               gint new_chain_length = 0;
 
                PTR_ARRAY_FOREACH(existing_ar, i, cur_hdr)
                {
@@ -1141,7 +1140,6 @@ void rspamd_message_set_modified_header(struct rspamd_task *task,
                                nhdr->ord_next = NULL;
 
                                DL_APPEND(hdr_elt->modified_chain, nhdr);
-                               new_chain_length++;
                        }
                }