From d60758a947e31794e08cd11949f857a0ea544a01 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 30 Jan 2024 21:30:01 -0500 Subject: [PATCH] LibGfx: Remove now-unused Color::from_cmyk() `CMYKBitmap::to_low_quality_rgb()` morally still does the same thing, but it has a slightly more scary name, and it doesn't use this exact function. So let's toss it :^) --- Userland/Libraries/LibGfx/Color.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Userland/Libraries/LibGfx/Color.h b/Userland/Libraries/LibGfx/Color.h index 827b37175f..b53fe8facd 100644 --- a/Userland/Libraries/LibGfx/Color.h +++ b/Userland/Libraries/LibGfx/Color.h @@ -74,15 +74,6 @@ public: static constexpr Color from_rgb(unsigned rgb) { return Color(rgb | 0xff000000); } static constexpr Color from_argb(unsigned argb) { return Color(argb); } - static constexpr Color from_cmyk(float c, float m, float y, float k) - { - auto r = static_cast(255.0f * (1.0f - c) * (1.0f - k)); - auto g = static_cast(255.0f * (1.0f - m) * (1.0f - k)); - auto b = static_cast(255.0f * (1.0f - y) * (1.0f - k)); - - return Color(r, g, b); - } - static constexpr Color from_yuv(YUV const& yuv) { return from_yuv(yuv.y, yuv.u, yuv.v); } static constexpr Color from_yuv(float y, float u, float v) {