From 1c1c24134f686bde50725cc04e1daa808245b08c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 21 Apr 2015 18:32:00 +0100 Subject: [PATCH] Remove unused function. --- src/plugins/fuzzy_check.c | 27 --------------------------- 1 file changed, 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) { -- 2.39.5