]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove unused trim() function
authorAttila Molnar <attilamolnar@hush.com>
Mon, 22 Aug 2016 14:30:02 +0000 (16:30 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 22 Aug 2016 14:30:02 +0000 (16:30 +0200)
include/hashcomp.h

index 87b2636fca0f1d96a07aa27ba95c3b7cac302106..7f6956bfcf7e2e6aa746cbfc3de8d3097e056c3a 100644 (file)
@@ -427,17 +427,3 @@ inline std::string assign(const irc::string &other) { return other.c_str(); }
 /** Assign a std::string to an irc::string.
  */
 inline irc::string assign(const std::string &other) { return other.c_str(); }
-
-/** Trim the leading and trailing spaces from a std::string.
- */
-inline std::string& trim(std::string &str)
-{
-       std::string::size_type start = str.find_first_not_of(" ");
-       std::string::size_type end = str.find_last_not_of(" ");
-       if (start == std::string::npos || end == std::string::npos)
-               str = "";
-       else
-               str = str.substr(start, end-start+1);
-
-       return str;
-}