From 7048d2a014479fd2dc82f0fab21093543d66a9b2 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 7 Jul 2018 09:15:57 +0200 Subject: [PATCH] removed dead code --- src/utils/fileudi.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/utils/fileudi.cpp b/src/utils/fileudi.cpp index bf4b3d7e..90d40658 100644 --- a/src/utils/fileudi.cpp +++ b/src/utils/fileudi.cpp @@ -26,20 +26,6 @@ using std::string; -// Debug only -#ifdef PATHHASH_HEX -static void md5hexprint(const unsigned char hash[16], string &out) -{ - out.erase(); - out.reserve(33); - static const char hex[]="0123456789abcdef"; - for (int i = 0; i < 16; i++) { - out.append(1, hex[hash[i] >> 4]); - out.append(1, hex[hash[i] & 0x0f]); - } -} -#endif - // Size of the hashed result (base64 of 16 bytes of md5, minus 2 pad chars) #define HASHLEN 22 @@ -66,12 +52,6 @@ void pathHash(const std::string &path, std::string &phash, unsigned int maxlen) path.length() - (maxlen - HASHLEN)); MD5Final(chash, &ctx); -#ifdef PATHHASH_HEX - string hex; - md5hexprint(chash, hex); - printf("hex [%s]\n", hex.c_str()); -#endif - // Encode it to ascii. This shouldn't be strictly necessary as // xapian terms can be binary string hash;