aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 31cde97a1..ece171135 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -686,24 +686,6 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session)
reply:
result.tag = cmd->tag;
- if (session->epoch < RSPAMD_FUZZY_EPOCH11) {
- /* We need to convert flags to legacy format */
- guint32 flag = 0;
-
- /* We select the least significant flag if multiple flags are set */
- for (flag = 0; flag < 32; flag ++) {
- if (result.flag & (1U << flag)) {
- break;
- }
- }
-
- if (flag == (1U << 31)) {
- flag = 0;
- }
-
- result.flag = flag + 1;
- }
-
memcpy (&session->reply.rep, &result, sizeof (result));
rspamd_fuzzy_update_stats (session->ctx,