commit 372c476: [Minor] Remove unused

Vsevolod Stakhov vsevolod at rspamd.com
Mon Jul 29 17:49:19 UTC 2024


Author: Vsevolod Stakhov
Date: 2023-11-24 15:30:01 +0000
URL: https://github.com/rspamd/rspamd/commit/372c476e2ae73ca50069d8616033e4702f498b31

[Minor] Remove unused

---
 src/libmime/mime_headers.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c
index e7b9c0c9b..e0cf42e0a 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -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++;
 			}
 		}
 


More information about the Commits mailing list