From 38e5b277a2bd5a9b10990bcb94a70babf721001a Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 11 Jul 2015 23:11:06 +0300 Subject: [PATCH] kwin: remove redudant loadScriptedEffect() --- kwin/effects.cpp | 12 ------------ kwin/effects.h | 1 - 2 files changed, 13 deletions(-) diff --git a/kwin/effects.cpp b/kwin/effects.cpp index d1e2c7d6..9ec4523c 100644 --- a/kwin/effects.cpp +++ b/kwin/effects.cpp @@ -1352,11 +1352,6 @@ bool EffectsHandlerImpl::loadEffect(const QString& name, bool checkDefault) } KService::Ptr service = offers.first(); - if (service->property("X-Plasma-API").toString() == "javascript") { - // this is a scripted effect - use different loader - return loadScriptedEffect(name, service.data()); - } - KLibrary* library = findEffectLibrary(service.data()); if (!library) { return false; @@ -1440,13 +1435,6 @@ bool EffectsHandlerImpl::loadEffect(const QString& name, bool checkDefault) return true; } -bool EffectsHandlerImpl::loadScriptedEffect(const QString& name, KService *service) -{ - Q_UNUSED(name) - Q_UNUSED(service) - return false; -} - void EffectsHandlerImpl::unloadEffect(const QString& name) { m_compositor->addRepaintFull(); diff --git a/kwin/effects.h b/kwin/effects.h index 7b7dfa9e..e46adb6f 100644 --- a/kwin/effects.h +++ b/kwin/effects.h @@ -236,7 +236,6 @@ protected Q_SLOTS: void slotPropertyNotify(long atom); protected: - bool loadScriptedEffect(const QString &name, KService *service); KLibrary* findEffectLibrary(KService* service); void effectsChanged(); void setupClientConnections(KWin::Client *c); -- 2.11.0