From 89033279e73e0dc548b87785b415b4daef5b1dce Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 8 Oct 2017 09:51:19 +0100 Subject: [Minor] Remove multiple metrics support when adding results --- src/libmime/filter.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 51a2d5c47..18ffce903 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -264,29 +264,15 @@ insert_result_common (struct rspamd_task *task, const gchar *opt, gboolean single) { - struct rspamd_metric *metric; - GList *cur, *metric_list; struct rspamd_symbol_result *s = NULL; - metric_list = g_hash_table_lookup (task->cfg->metrics_symbols, symbol); - if (metric_list) { - cur = metric_list; - - while (cur) { - metric = cur->data; - s = insert_metric_result (task, metric, symbol, flag, opt, single); - cur = g_list_next (cur); - } - } - else { - /* Insert symbol to default metric */ - s = insert_metric_result (task, + /* Insert symbol to default metric */ + s = insert_metric_result (task, task->cfg->default_metric, symbol, flag, opt, single); - } /* Process cache item */ if (task->cfg->cache) { -- cgit v1.2.3