From 6f8fa405cf5d394491b987d824f5e1b74c14a4c8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 1 Oct 2014 17:35:47 +0100 Subject: Rework parsing of ip lists. --- src/libserver/cfg_file.h | 6 ------ src/libserver/cfg_utils.c | 10 ---------- 2 files changed, 16 deletions(-) (limited to 'src/libserver') diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 7e3d60db8..c08fe0c80 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -476,12 +476,6 @@ struct rspamd_classifier_config * rspamd_config_find_classifier ( struct rspamd_config *cfg, const gchar *name); -/* - * Parse input `ip_list` to radix tree `tree`. Now supports only IPv4 addresses. - */ -gboolean rspamd_config_parse_ip_list (const gchar *ip_list, - radix_compressed_t **tree); - void rspamd_ucl_add_conf_macros (struct ucl_parser *parser, struct rspamd_config *cfg); diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index aecef53d4..f7285d5ed 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -1004,16 +1004,6 @@ rspamd_ucl_fin_cb (rspamd_mempool_t * pool, struct map_cb_data *data) } } -gboolean -rspamd_config_parse_ip_list (const gchar *ip_list, radix_compressed_t **tree) -{ - if (*tree == NULL) { - *tree = radix_create_compressed (); - } - - return (rspamd_radix_add_iplist (ip_list, ",; ", *tree) > 0); -} - /* * vi:ts=4 */ -- cgit v1.2.3