Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove unused conversion map

Dmitry Kazakove7b3f1cf0028
diff --git a/libs/pigment/KoColorSpaceRegistry.cpp b/libs/pigment/KoColorSpaceRegistry.cpp
index 0497c2bc3d..1f68d249b8 100644
--- a/libs/pigment/KoColorSpaceRegistry.cpp
+++ b/libs/pigment/KoColorSpaceRegistry.cpp
@@ -725,14 +725,6 @@ const KoColorProfile *KoColorSpaceRegistry::profileFor(const QVector<double> &co
return nullptr;
}
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
-static QMap<QColorSpace::ColorModel, QString> mapQColorSpaceModelToId {
- {QColorSpace::ColorModel::Rgb, RGBAColorModelID.id()},
- {QColorSpace::ColorModel::Cmyk, CMYKAColorModelID.id()},
- {QColorSpace::ColorModel::Gray, GrayAColorModelID.id()},
-};
-#endif
-
static QMap<QColorSpace::Primaries, ColorPrimaries> mapQColorSpaceColorPrimaries {
{QColorSpace::Primaries::SRgb, PRIMARIES_ITU_R_BT_709_5},
{QColorSpace::Primaries::AdobeRgb, PRIMARIES_ADOBE_RGB_1998},