aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2016-11-07 16:03:50 +0100
committerMartin Gräßlin <[email protected]>2016-11-16 07:46:27 +0100
commit3041b871ea2cd94997dafcb4c1f72364be655b06 (patch)
treece7b9be092ec666097c799cfa1054365d4ee1a05
parentc304c0a69cc0b94fcf89ba707d220503266a1ab6 (diff)
[libkwineffects] Delete EffectsHandler::deleteRootProperty
Summary: The method is not used by any Effect and is X11 specific, thus better remove it for good. Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D3298
-rw-r--r--autotests/mock_effectshandler.h1
-rw-r--r--effects.cpp5
-rw-r--r--effects.h1
-rw-r--r--libkwineffects/kwineffects.h1
4 files changed, 0 insertions, 8 deletions
diff --git a/autotests/mock_effectshandler.h b/autotests/mock_effectshandler.h
index 8a0179c..5f9467f 100644
--- a/autotests/mock_effectshandler.h
+++ b/autotests/mock_effectshandler.h
@@ -85,7 +85,6 @@ public:
return false;
}
void defineCursor(Qt::CursorShape) override {}
- void deleteRootProperty(long int) const override {}
int desktopAbove(int, bool) const override {
return 0;
}
diff --git a/effects.cpp b/effects.cpp
index ff73008..fc4b94a 100644
--- a/effects.cpp
+++ b/effects.cpp
@@ -830,11 +830,6 @@ QByteArray EffectsHandlerImpl::readRootProperty(long atom, long type, int format
return readWindowProperty(rootWindow(), atom, type, format);
}
-void EffectsHandlerImpl::deleteRootProperty(long atom) const
-{
- deleteWindowProperty(rootWindow(), atom);
-}
-
void EffectsHandlerImpl::activateWindow(EffectWindow* c)
{
if (AbstractClient* cl = dynamic_cast< AbstractClient* >(static_cast<EffectWindowImpl*>(c)->window()))
diff --git a/effects.h b/effects.h
index e6a316c..9559fdd 100644
--- a/effects.h
+++ b/effects.h
@@ -176,7 +176,6 @@ public:
void reconfigure() override;
void registerPropertyType(long atom, bool reg) override;
QByteArray readRootProperty(long atom, long type, int format) const override;
- void deleteRootProperty(long atom) const override;
xcb_atom_t announceSupportProperty(const QByteArray& propertyName, Effect* effect) override;
void removeSupportProperty(const QByteArray& propertyName, Effect* effect) override;
diff --git a/libkwineffects/kwineffects.h b/libkwineffects/kwineffects.h
index 077890f..44b49d2 100644
--- a/libkwineffects/kwineffects.h
+++ b/libkwineffects/kwineffects.h
@@ -1064,7 +1064,6 @@ public:
*/
virtual void registerPropertyType(long atom, bool reg) = 0;
virtual QByteArray readRootProperty(long atom, long type, int format) const = 0;
- virtual void deleteRootProperty(long atom) const = 0;
/**
* @brief Announces support for the feature with the given name. If no other Effect
* has announced support for this feature yet, an X11 property will be installed on