summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-22 15:43:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-22 15:43:14 +0100
commitb27d449084c2e9aa9c16f6a1273f21a45f5a4a64 (patch)
treefde2b0d0305cbed5ce8ee26f641c8d943699a2f5
parentf6777d7faea262b8ce3b537f0ca9fa233dd4d5dd (diff)
downloadrspamd-b27d449084c2e9aa9c16f6a1273f21a45f5a4a64.tar.gz
rspamd-b27d449084c2e9aa9c16f6a1273f21a45f5a4a64.zip
Remove settings from the configuration.
-rw-r--r--src/libserver/cfg_rcl.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 6347e3869..ae1eadfe3 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -156,28 +156,6 @@ static gboolean
rspamd_rcl_options_handler (struct rspamd_config *cfg, const ucl_object_t *obj,
gpointer ud, struct rspamd_rcl_section *section, GError **err)
{
- const ucl_object_t *val;
- const gchar *user_settings, *domain_settings;
-
- /* Handle user and domain settings */
- val = ucl_object_find_key (obj, "user_settings");
- if (val != NULL && ucl_object_tostring_safe (val, &user_settings)) {
- if (!read_settings (user_settings, "Users' settings", cfg, cfg->user_settings)) {
- g_set_error (err, CFG_RCL_ERROR, EINVAL, "cannot read settings: %s", user_settings);
- return FALSE;
- }
- cfg->user_settings_str = rspamd_mempool_strdup (cfg->cfg_pool, user_settings);
- }
-
- val = ucl_object_find_key (obj, "domain_settings");
- if (val != NULL && ucl_object_tostring_safe (val, &domain_settings)) {
- if (!read_settings (domain_settings, "Domains settings", cfg, cfg->domain_settings)) {
- g_set_error (err, CFG_RCL_ERROR, EINVAL, "cannot read settings: %s", domain_settings);
- return FALSE;
- }
- cfg->domain_settings_str = rspamd_mempool_strdup (cfg->cfg_pool, domain_settings);
- }
-
return rspamd_rcl_section_parse_defaults (section, cfg, obj, cfg, err);
}