summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/regexp.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 4de5984c9..3acfddc5b 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -421,9 +421,7 @@ regexp_common_filter (struct worker_task *task)
static gboolean
rspamd_regexp_match_number (struct worker_task *task, GList *args)
{
- char *param_pattern;
int param_count, res = 0;
- struct rspamd_regexp *re;
struct expression_argument *arg;
GList *cur;
@@ -444,21 +442,6 @@ rspamd_regexp_match_number (struct worker_task *task, GList *args)
}
}
else {
- param_pattern = (char *)arg->data;
- if (*param_pattern != '/') {
- /* Skip non-regexp arguments */
- cur = g_list_next (cur);
- continue;
- }
- /* This is regexp, so compile and create g_regexp object */
- if ((re = re_cache_check (param_pattern)) == NULL) {
- re = parse_regexp (task->task_pool, param_pattern, task->cfg->raw_mode);
- if (re == NULL) {
- msg_warn ("rspamd_regexp_match_number: cannot compile regexp for function");
- return FALSE;
- }
- re_cache_add (param_pattern, re);
- }
if (process_regexp_expression (cur->data, task)) {
res ++;
}