]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
irc::Spacify--
authorattilamolnar <attilamolnar@hush.com>
Wed, 15 May 2013 23:57:09 +0000 (01:57 +0200)
committerattilamolnar <attilamolnar@hush.com>
Wed, 15 May 2013 23:57:09 +0000 (01:57 +0200)
include/hashcomp.h
src/hashcomp.cpp

index 3963f96e7b89fb347b0e46236b73bd7c153296f8..c1e8a0ec51215cb5f1822472aa662d2b541f74d2 100644 (file)
@@ -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
index 25abd471f96eaf8b013fd5bc253f8f4d6e5d3305..4ddf942eae028a8ce327d3a6e65952f7e9239c49 100644 (file)
@@ -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();