commit e170d0f: [Minor] Avoid extra sort

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Feb 22 16:14:13 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-02-22 16:09:51 +0000
URL: https://github.com/rspamd/rspamd/commit/e170d0f7d9037b58b8e1c47bd37ccffbc7587044 (HEAD -> master)

[Minor] Avoid extra sort

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

diff --git a/src/libmime/message.c b/src/libmime/message.c
index a4b357015..99b84e385 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -771,8 +771,6 @@ rspamd_message_process_html_text_part (struct rspamd_task *task,
 			MESSAGE_FIELD (task, urls),
 			text_part->mime_part->urls);
 
-	g_ptr_array_sort (text_part->mime_part->urls, rspamd_url_cmp_qsort);
-
 	if (text_part->utf_content->len == 0) {
 		text_part->flags |= RSPAMD_MIME_TEXT_PART_FLAG_EMPTY;
 	}


More information about the Commits mailing list