remove dead code
This commit is contained in:
parent
a3a9dff4a2
commit
fba45d9360
@ -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()) {
|
||||
|
@ -46,7 +46,6 @@ public:
|
||||
|
||||
public Q_SLOTS:
|
||||
void executeAction(const QString &name);
|
||||
void activate();
|
||||
|
||||
protected:
|
||||
bool init();
|
||||
|
Loading…
Reference in New Issue
Block a user