From 3524e70fe26d17909367c55c14e2565f0e0ba0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 5 Jul 2011 20:35:32 +0200 Subject: [PATCH] Drop EffectsHandler::saturationSupported Not used by any effect or anywhere in core. --- libkwineffects/kwineffects.cpp | 14 -------------- libkwineffects/kwineffects.h | 1 - 2 files changed, 15 deletions(-) diff --git a/libkwineffects/kwineffects.cpp b/libkwineffects/kwineffects.cpp index 8d98d9f87d..b1b9270ce5 100644 --- a/libkwineffects/kwineffects.cpp +++ b/libkwineffects/kwineffects.cpp @@ -262,20 +262,6 @@ CompositingType EffectsHandler::compositingType() const return compositing_type; } -bool EffectsHandler::saturationSupported() const -{ - switch(compositing_type) { -#ifdef KWIN_HAVE_OPENGL_COMPOSITING - case OpenGLCompositing: - return GLTexture::saturationSupported(); -#endif - case XRenderCompositing: - return false; // never - default: - abort(); - } -} - void EffectsHandler::sendReloadMessage(const QString& effectname) { QDBusMessage message = QDBusMessage::createMethodCall("org.kde.kwin", "/KWin", "org.kde.KWin", "reconfigureEffect"); diff --git a/libkwineffects/kwineffects.h b/libkwineffects/kwineffects.h index 630c5ba0f1..a93d398478 100644 --- a/libkwineffects/kwineffects.h +++ b/libkwineffects/kwineffects.h @@ -739,7 +739,6 @@ public: CompositingType compositingType() const; virtual unsigned long xrenderBufferPicture() = 0; - bool saturationSupported() const; virtual void reconfigure() = 0; /**