diff --git a/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp b/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp index a61710341..ae1bd9014 100644 --- a/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp +++ b/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp @@ -99,22 +99,6 @@ QString DeclarativeAppletScript::filePath(const QString &type, const QString &fi return package().filePath(type.toLocal8Bit().constData(), file); } -QObject *DeclarativeAppletScript::loadui(const QString &filename) -{ - QFile f(filename); - if (!f.open(QIODevice::ReadOnly)) { - qWarning() << i18n("Unable to open '%1'",filename); - return 0; - } - - QUiLoader loader; - QWidget *w = loader.load(&f); - f.close(); - - return w; -} - - void DeclarativeAppletScript::constraintsEvent(Plasma::Types::Constraints constraints) { if (constraints & Plasma::Types::FormFactorConstraint) { @@ -157,11 +141,6 @@ bool DeclarativeAppletScript::include(const QString &path) return false; } -QObject *DeclarativeAppletScript::loadService(const QString &pluginName) -{ - return Plasma::PluginLoader::self()->loadService(pluginName, QVariantList(), applet()); -} - QList DeclarativeAppletScript::contextualActions() { if (!m_interface) { diff --git a/src/scriptengines/qml/plasmoid/declarativeappletscript.h b/src/scriptengines/qml/plasmoid/declarativeappletscript.h index 6e68b759f..72fefad11 100644 --- a/src/scriptengines/qml/plasmoid/declarativeappletscript.h +++ b/src/scriptengines/qml/plasmoid/declarativeappletscript.h @@ -48,8 +48,6 @@ public: bool include(const QString &path); - static QObject *loadui(const QString &filename); - QObject *loadService(const QString &pluginName); public Q_SLOTS: void executeAction(const QString &name);