diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-06 18:48:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-06 18:48:06 +0100 |
commit | 6c3399e7b98b702e0110c8749a5eb6785905bd79 (patch) | |
tree | 200af5a54cfc83b5756968b4374f5a858c59ae88 /src/libmime | |
parent | ae794569d7722c2b59bd2c4468cf41dae1d14121 (diff) | |
download | rspamd-6c3399e7b98b702e0110c8749a5eb6785905bd79.tar.gz rspamd-6c3399e7b98b702e0110c8749a5eb6785905bd79.zip |
[Minor] Remove bogus likely
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 91c5114e8..760518d4f 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -240,7 +240,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, } state = normal_char; while (p < pe) { - if (G_LIKELY(is_utf)) { + if (is_utf) { gint32 off = p - begin; U8_NEXT (begin, off, pe - begin, uc); @@ -284,7 +284,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, */ break; } - else if (G_UNLIKELY (*p) == '\r') { + else if (*p == '\r') { switch (state) { case normal_char: state = seen_cr; @@ -321,7 +321,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, p ++; } - else if (G_UNLIKELY (*p == '\n')) { + else if (*p == '\n') { switch (state) { case normal_char: state = seen_lf; @@ -392,7 +392,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, switch (state) { case normal_char: - if (G_UNLIKELY (*p) == ' ') { + if (*p == ' ') { part->spaces ++; if (p > begin && *(p - 1) == ' ') { @@ -402,7 +402,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, else { part->non_spaces ++; - if (G_UNLIKELY (*p & 0x80)) { + if ((*p) & 0x80) { part->non_ascii_chars ++; } else { @@ -427,7 +427,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, } /* Skip initial spaces */ - if (G_UNLIKELY (*p == ' ')) { + if (*p == ' ') { if (!crlf_added) { g_byte_array_append (part->utf_stripped_content, (const guint8 *)" ", 1); @@ -464,7 +464,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, (const guint8 *)c, p - c); while (c < p) { - if (G_UNLIKELY (*c) == ' ') { + if (*c == ' ') { part->spaces ++; if (c > begin && *(c - 1) == ' ') { @@ -474,7 +474,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, else { part->non_spaces ++; - if (G_UNLIKELY (*c & 0x80)) { + if ((*c) & 0x80) { part->non_ascii_chars ++; } else { |