From 846026051cf4466a78d7276f64a11ad5a9bca03e Mon Sep 17 00:00:00 2001 From: Soltan Tekeev Date: Wed, 13 Apr 2016 20:35:07 +0300 Subject: [PATCH] Fix code duplicate Signed-off-by: Soltan Tekeev --- Telegram/SourceFiles/_other/genstyles.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Telegram/SourceFiles/_other/genstyles.cpp b/Telegram/SourceFiles/_other/genstyles.cpp index 3d52dc82cd..8513ece9bf 100644 --- a/Telegram/SourceFiles/_other/genstyles.cpp +++ b/Telegram/SourceFiles/_other/genstyles.cpp @@ -609,17 +609,7 @@ ScalarValue prepareColor(int variant, const string &name, const string &token) { result.reserve(20); int r = hexDec(token[0], token[1]), g = hexDec(token[2], token[3]), b = hexDec(token[4], token[5]), a = hexDec(token[6], token[7]); - if (a == 255) { - Color c; - c.color = QString("%1, %2, %3, 255").arg(r).arg(g).arg(b).toUtf8().constData(); - colors[variant][name] = c; - if (!variant) { - for (int i = 1; i < variantsCount; ++i) { - colors[variants[i]][name] = c; - } - } - return fillPrepareResult(variant, "(Qt::Uninitialized)"); - } + Color c; c.color = QString("%1, %2, %3, %4").arg(r).arg(g).arg(b).arg(a).toUtf8().constData(); colors[variant][name] = c;