From a2e9e2837da14f7408b794750f86cca0d4cfd884 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 16 May 2013 01:57:09 +0200 Subject: irc::Spacify-- --- include/hashcomp.h | 6 ------ src/hashcomp.cpp | 11 ----------- 2 files changed, 17 deletions(-) diff --git a/include/hashcomp.h b/include/hashcomp.h index 3963f96e7..c1e8a0ec5 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -477,12 +477,6 @@ namespace irc long GetToken(); }; - /** Turn _ characters in a string into spaces - * @param n String to translate - * @return The new value with _ translated to space. - */ - CoreExport const char* Spacify(const char* n); - struct hash { /** Hash an irc::string using RFC1459 case sensitivity rules diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 25abd471f..4ddf942ea 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -386,17 +386,6 @@ std::string irc::hex(const unsigned char *raw, size_t rawsz) return hexbuf; } -CoreExport const char* irc::Spacify(const char* n) -{ - static char x[MAXBUF]; - strlcpy(x,n,MAXBUF); - for (char* y = x; *y; y++) - if (*y == '_') - *y = ' '; - return x; -} - - irc::modestacker::modestacker(bool add) : adding(add) { sequence.clear(); -- cgit v1.2.3