delete out commented code

This commit is contained in:
hemirt 2018-09-23 19:52:30 +02:00
parent 1acb1278aa
commit f08cc4cf88

View file

@ -222,19 +222,6 @@ MessagePtr TwitchMessageBuilder::build()
auto mid = this->originalMessage_.mid(from, len); auto mid = this->originalMessage_.mid(from, len);
mid.replace(regex, phrase.getReplace()); mid.replace(regex, phrase.getReplace());
/*for (auto &tup : vret) {
if (std::get<1>(tup) == nullptr) {
log("v nullptr {}", std::get<2>(tup).string);
continue;
}
int index = 0;
const auto &emote = std::get<2>(tup);
while ((index = mid.indexOf(emote.string, index)) != -1) {
std::get<0>(tup) = from + index;
index += emote.string.size();
twitchEmotes.push_back(tup);
}
}*/
int midsize = mid.size(); int midsize = mid.size();
this->originalMessage_.replace(from, len, mid); this->originalMessage_.replace(from, len, mid);
int pos1 = from; int pos1 = from;
@ -286,20 +273,6 @@ MessagePtr TwitchMessageBuilder::build()
auto vret = removeEmotesInRange(from, len, twitchEmotes); auto vret = removeEmotesInRange(from, len, twitchEmotes);
auto replace = phrase.getReplace(); auto replace = phrase.getReplace();
/*for (auto &tup : vret) {
if (std::get<1>(tup) == nullptr) {
log("v nullptr {}", std::get<2>(tup).string);
continue;
}
int index = 0;
const auto &emote = std::get<2>(tup);
while ((index = replace.indexOf(emote.string, index)) != -1) {
std::get<0>(tup) = from + index;
index += emote.string.size();
twitchEmotes.push_back(tup);
}
}*/
int replacesize = replace.size(); int replacesize = replace.size();
this->originalMessage_.replace(from, len, replace); this->originalMessage_.replace(from, len, replace);