From fbe1c1fdb27e4e1031358d52998e8b57283be123 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 30 Aug 2014 13:05:04 +0200 Subject: [PATCH] lyrics fetcher: metrolyrics: remove code not needed anymore --- src/lyrics_fetcher.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index ec011b92..baeeb11f 100644 --- a/src/lyrics_fetcher.cpp +++ b/src/lyrics_fetcher.cpp @@ -226,10 +226,6 @@ void Sing365Fetcher::postProcess(std::string &data) void MetrolyricsFetcher::postProcess(std::string &data) { - // throw away [ from ... ] info - size_t i = data.find('['), j = data.find(']'); - if (i != std::string::npos && j != std::string::npos) - data.replace(i, j-i+1, ""); // some of lyrics have both \n chars and
, html tags // are always present whereas \n chars are not, so we need to // throw them away to avoid having line breaks doubled.