effects: Drop support for effect proxy'ing
It's not used by any effect. We use other means to share functionality between effects now.
This commit is contained in:
parent
66837f7cce
commit
89283c4cc6
4 changed files with 0 additions and 28 deletions
|
@ -819,17 +819,6 @@ void EffectsHandlerImpl::registerTouchscreenSwipeShortcut(SwipeDirection directi
|
|||
input()->registerTouchscreenSwipeShortcut(direction, fingerCount, action, progressCallback);
|
||||
}
|
||||
|
||||
void *EffectsHandlerImpl::getProxy(QString name)
|
||||
{
|
||||
for (QVector<EffectPair>::const_iterator it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) {
|
||||
if ((*it).first == name) {
|
||||
return (*it).second->proxy();
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::startMousePolling()
|
||||
{
|
||||
if (Cursors::self()->mouse()) {
|
||||
|
|
|
@ -105,7 +105,6 @@ public:
|
|||
void registerTouchpadSwipeShortcut(SwipeDirection dir, uint fingerCount, QAction *onUp, std::function<void(qreal)> progressCallback) override;
|
||||
void registerTouchpadPinchShortcut(PinchDirection dir, uint fingerCount, QAction *onUp, std::function<void(qreal)> progressCallback) override;
|
||||
void registerTouchscreenSwipeShortcut(SwipeDirection direction, uint fingerCount, QAction *action, std::function<void(qreal)> progressCallback) override;
|
||||
void *getProxy(QString name) override;
|
||||
void startMousePolling() override;
|
||||
void stopMousePolling() override;
|
||||
EffectWindow *findWindow(WId id) const override;
|
||||
|
|
|
@ -469,11 +469,6 @@ void Effect::reconfigure(ReconfigureFlags)
|
|||
{
|
||||
}
|
||||
|
||||
void *Effect::proxy()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void Effect::windowInputMouseEvent(QEvent *)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -360,11 +360,6 @@ public:
|
|||
*/
|
||||
virtual void reconfigure(ReconfigureFlags flags);
|
||||
|
||||
/**
|
||||
* Called when another effect requests the proxy for this effect.
|
||||
*/
|
||||
virtual void *proxy();
|
||||
|
||||
/**
|
||||
* Called before starting to paint the screen.
|
||||
* In this method you can:
|
||||
|
@ -922,12 +917,6 @@ public:
|
|||
*/
|
||||
virtual void registerTouchscreenSwipeShortcut(SwipeDirection direction, uint fingerCount, QAction *action, std::function<void(qreal)> progressCallback) = 0;
|
||||
|
||||
/**
|
||||
* Retrieve the proxy class for an effect if it has one. Will return NULL if
|
||||
* the effect isn't loaded or doesn't have a proxy class.
|
||||
*/
|
||||
virtual void *getProxy(QString name) = 0;
|
||||
|
||||
// Mouse polling
|
||||
virtual void startMousePolling() = 0;
|
||||
virtual void stopMousePolling() = 0;
|
||||
|
|
Loading…
Reference in a new issue