Remove incomplete implementation of remove_irc_colors

This commit is contained in:
Florent Le Coz
2013-11-27 00:37:23 +01:00
parent 959291afe6
commit fba01f4646
4 changed files with 0 additions and 23 deletions
-17
View File
@@ -3,22 +3,5 @@
#include <iostream>
void remove_irc_colors(std::string& str)
{
auto it = std::remove_if(str.begin(), str.end(),
[](const char c)
{
if (c == IRC_COLOR_BOLD_CHAR || c == IRC_COLOR_COLOR_CHAR ||
c == IRC_COLOR_FIXED_CHAR || c == IRC_COLOR_RESET_CHAR ||
c == IRC_COLOR_REVERSE_CHAR || c == IRC_COLOR_REVERSE2_CHAR ||
c == IRC_COLOR_UNDERLINE_CHAR || c == IRC_COLOR_ITALIC_CHAR ||
// HACK: until we properly handle things
// like ^AVERSION^A, remove the ^A chars
// here.
c == '\u0001')
return true;
return false;
}
);
str.erase(it, str.end());
}