]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove unused function
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Aug 2017 19:47:08 +0000 (20:47 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Aug 2017 19:47:08 +0000 (20:47 +0100)
src/libserver/protocol.c

index 93ea62816b525aa0198f6e1c1b4ad8893241dc6b..b012aee0819f7829d1246350f2da695e56e2bcb2 100644 (file)
@@ -792,27 +792,6 @@ make_rewritten_subject (struct rspamd_metric *metric, struct rspamd_task *task)
        return res;
 }
 
-static ucl_object_t *
-rspamd_str_hash_ucl (GHashTable *ht)
-{
-       GHashTableIter it;
-       gpointer k, v;
-       ucl_object_t *top = NULL, *obj;
-
-       top = ucl_object_typed_new (UCL_ARRAY);
-
-       if (ht) {
-               g_hash_table_iter_init (&it, ht);
-
-               while (g_hash_table_iter_next (&it, &k, &v)) {
-                       obj = ucl_object_fromstring ((const char *)v);
-                       ucl_array_append (top, obj);
-               }
-       }
-
-       return top;
-}
-
 static ucl_object_t *
 rspamd_metric_symbol_ucl (struct rspamd_task *task, struct rspamd_metric *m,
        struct rspamd_symbol_result *sym)