From d3b2d4c5a4eab070d06f60f2c42011ec4ffc4568 Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 19 Nov 2008 23:23:31 +0000 Subject: [PATCH] Remove duplicated copy of binary_to_hex() git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1760 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/enc_old.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/core/enc_old.c b/src/core/enc_old.c index befcd105b..081d17bb2 100644 --- a/src/core/enc_old.c +++ b/src/core/enc_old.c @@ -14,23 +14,6 @@ #include "module.h" -void binary_to_hex(unsigned char *bin, char *hex, int length) -{ - static const char trans[] = "0123456789ABCDEF"; - int i; - - for(i = 0; i < length; i++) - { - hex[i << 1] = trans[bin[i] >> 4]; - hex[(i << 1) + 1] = trans[bin[i] & 0xf]; - } - - hex[i << 1] = '\0'; -} - - -/*************************************************************************/ - /******** Code specific to the type of encryption. ********/