From 64dc01c6403f43b651948e65012d554f7bbe2dc7 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 29 Feb 2024 14:52:30 +0200 Subject: [PATCH] effect: Drop WindowPaintData::screen It's unused. --- src/effect/effect.cpp | 13 ------------- src/effect/effect.h | 12 ------------ 2 files changed, 25 deletions(-) diff --git a/src/effect/effect.cpp b/src/effect/effect.cpp index 2f6b1313cb..299817b19f 100644 --- a/src/effect/effect.cpp +++ b/src/effect/effect.cpp @@ -213,7 +213,6 @@ public: qreal opacity; qreal saturation; qreal brightness; - int screen; qreal crossFadeProgress; }; @@ -224,7 +223,6 @@ WindowPaintData::WindowPaintData() setOpacity(1.0); setSaturation(1.0); setBrightness(1.0); - setScreen(0); setCrossFadeProgress(0.0); } @@ -242,7 +240,6 @@ WindowPaintData::WindowPaintData(const WindowPaintData &other) setOpacity(other.opacity()); setSaturation(other.saturation()); setBrightness(other.brightness()); - setScreen(other.screen()); setCrossFadeProgress(other.crossFadeProgress()); } @@ -263,11 +260,6 @@ qreal WindowPaintData::brightness() const return d->brightness; } -int WindowPaintData::screen() const -{ - return d->screen; -} - void WindowPaintData::setOpacity(qreal opacity) { d->opacity = opacity; @@ -283,11 +275,6 @@ void WindowPaintData::setBrightness(qreal brightness) d->brightness = brightness; } -void WindowPaintData::setScreen(int screen) const -{ - d->screen = screen; -} - qreal WindowPaintData::crossFadeProgress() const { return d->crossFadeProgress; diff --git a/src/effect/effect.h b/src/effect/effect.h index 378eb8f0e1..6c26a88b6c 100644 --- a/src/effect/effect.h +++ b/src/effect/effect.h @@ -408,18 +408,6 @@ public: * @since 4.10 */ qreal multiplyBrightness(qreal factor); - /** - * The screen number for which the painting should be done. - * This affects color correction (different screens may need different - * color correction lookup tables because they have different ICC profiles). - * @return screen for which painting should be done - */ - int screen() const; - /** - * @param screen New screen number - * A value less than 0 will indicate that a default profile should be done. - */ - void setScreen(int screen) const; /** * @brief Sets the cross fading @p factor to fade over with previously sized window. * If @c 1.0 only the current window is used, if @c 0.0 only the previous window is used.