diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 16:30:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 16:30:02 +0200 |
commit | 0424d98e0e6cbf139da4209aaacfd5585308f0ba (patch) | |
tree | 8f0a396afc4b950836c904ba8c7374d47737eea7 | |
parent | 2df0de3c9212f7ea74fcb9a0ccf20990e47e9f2e (diff) |
Remove unused trim() function
-rw-r--r-- | include/hashcomp.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index 87b2636fc..7f6956bfc 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -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; -} |