aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 18:32:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 18:32:00 +0100
commit1c1c24134f686bde50725cc04e1daa808245b08c (patch)
tree3d3ba3c50b894363d53cd04567c8f856a98ac505 /src/plugins
parentbcde7d898fca1b35d439b9fa2e4998d5df1df87c (diff)
downloadrspamd-1c1c24134f686bde50725cc04e1daa808245b08c.tar.gz
rspamd-1c1c24134f686bde50725cc04e1daa808245b08c.zip
Remove unused function.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 54e58ed04..b5410e6cf 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -120,7 +120,6 @@ struct fuzzy_learn_session {
};
static struct fuzzy_ctx *fuzzy_module_ctx = NULL;
-static const gchar hex_digits[] = "0123456789abcdef";
static void fuzzy_symbol_callback (struct rspamd_task *task, void *unused);
@@ -266,32 +265,6 @@ fuzzy_normalize (gint32 in, double weight)
#endif
}
-static const gchar *
-fuzzy_to_string (rspamd_fuzzy_t *h)
-{
- static gchar strbuf [FUZZY_HASHLEN * 2 + 1];
- const int max_print = 5;
- gint i;
- guint8 byte;
-
- for (i = 0; i < max_print; i++) {
- byte = h->hash_pipe[i];
- if (byte == '\0') {
- break;
- }
- strbuf[i * 2] = hex_digits[byte >> 4];
- strbuf[i * 2 + 1] = hex_digits[byte & 0xf];
- }
- if (i == max_print) {
- memcpy (&strbuf[i * 2], "...", 4);
- }
- else {
- strbuf[i * 2] = '\0';
- }
-
- return strbuf;
-}
-
static struct fuzzy_rule *
fuzzy_rule_new (const char *default_symbol, rspamd_mempool_t *pool)
{