diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-09 17:24:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-09 17:24:32 +0000 |
commit | 8dcfc4994b8e370867033337c1a231d4fa3bd111 (patch) | |
tree | fea954ca2dfd7b23393f2c2b72f07c1d334ccb1d /src/libserver | |
parent | 266d5669d85db26f74fdd6483f114fe20f1bbb7e (diff) | |
download | rspamd-8dcfc4994b8e370867033337c1a231d4fa3bd111.tar.gz rspamd-8dcfc4994b8e370867033337c1a231d4fa3bd111.zip |
Remove old UCL workarounds.
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/cfg_rcl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index f35dee92d..4ea7c17ed 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -461,9 +461,6 @@ rspamd_rcl_metric_handler (struct rspamd_config *cfg, const ucl_object_t *obj, /* Handle symbols */ val = ucl_object_find_key (obj, "symbols"); if (val != NULL) { - if (val->type == UCL_ARRAY) { - val = val->value.ov; - } if (val->type != UCL_OBJECT) { g_set_error (err, CFG_RCL_ERROR, EINVAL, "symbols must be an object"); @@ -480,9 +477,6 @@ rspamd_rcl_metric_handler (struct rspamd_config *cfg, const ucl_object_t *obj, /* Legacy variant */ val = ucl_object_find_key (obj, "symbol"); if (val != NULL) { - if (val->type == UCL_ARRAY) { - val = val->value.ov; - } if (val->type != UCL_OBJECT) { g_set_error (err, CFG_RCL_ERROR, |