summaryrefslogtreecommitdiff
path: root/src/bridge/colors.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-22 21:00:07 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-27 00:37:23 +0100
commitfba01f46468050d4f3b8eb35373ed49a3584868e (patch)
treede7d59983ca65db7ec493a24ab3e0b629a4c9798 /src/bridge/colors.cpp
parent959291afe69de05aaa7ceeb61b3b0ede7a54bfea (diff)
downloadbiboumi-fba01f46468050d4f3b8eb35373ed49a3584868e.tar.gz
biboumi-fba01f46468050d4f3b8eb35373ed49a3584868e.tar.bz2
biboumi-fba01f46468050d4f3b8eb35373ed49a3584868e.tar.xz
biboumi-fba01f46468050d4f3b8eb35373ed49a3584868e.zip
Remove incomplete implementation of remove_irc_colors
Diffstat (limited to 'src/bridge/colors.cpp')
-rw-r--r--src/bridge/colors.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/bridge/colors.cpp b/src/bridge/colors.cpp
index b34ab4a..2f30354 100644
--- a/src/bridge/colors.cpp
+++ b/src/bridge/colors.cpp
@@ -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());
}