From fba45d93608da99b135e6ccf955ffc11f85e96a4 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 23 Dec 2013 14:27:22 +0100 Subject: [PATCH] remove dead code --- .../qml/plasmoid/declarativeappletscript.cpp | 15 --------------- .../qml/plasmoid/declarativeappletscript.h | 1 - 2 files changed, 16 deletions(-) diff --git a/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp b/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp index b8d0c7fdc..13085cd79 100644 --- a/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp +++ b/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp @@ -84,9 +84,6 @@ bool DeclarativeAppletScript::init() // set the graphicObject dynamic property on applet a->setProperty("graphicObject", QVariant::fromValue(m_interface)); - connect(applet(), &Plasma::Applet::activate, - this, &DeclarativeAppletScript::activate); - return true; } @@ -110,18 +107,6 @@ void DeclarativeAppletScript::constraintsEvent(Plasma::Types::Constraints constr } } -void DeclarativeAppletScript::activate() -{ -#if 0 -TODO: callEventListeners is broken without qscriptengine - if (!m_env) { - return; - } - - m_env->callEventListeners("activate"); -#endif -} - void DeclarativeAppletScript::executeAction(const QString &name) { if (m_interface->qmlObject()->rootObject()) { diff --git a/src/scriptengines/qml/plasmoid/declarativeappletscript.h b/src/scriptengines/qml/plasmoid/declarativeappletscript.h index c1fc12c06..ea197eaab 100644 --- a/src/scriptengines/qml/plasmoid/declarativeappletscript.h +++ b/src/scriptengines/qml/plasmoid/declarativeappletscript.h @@ -46,7 +46,6 @@ public: public Q_SLOTS: void executeAction(const QString &name); - void activate(); protected: bool init();