get rid of unused methods
This commit is contained in:
parent
c282d222d7
commit
e28af01215
@ -65,12 +65,6 @@ AppletInterface::~AppletInterface()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
AppletInterface *AppletInterface::extract(QScriptEngine *engine)
|
|
||||||
{
|
|
||||||
QScriptValue appletValue = engine->globalObject().property("plasmoid");
|
|
||||||
return qobject_cast<AppletInterface*>(appletValue.toQObject());
|
|
||||||
}
|
|
||||||
|
|
||||||
Plasma::DataEngine* AppletInterface::dataEngine(const QString &name)
|
Plasma::DataEngine* AppletInterface::dataEngine(const QString &name)
|
||||||
{
|
{
|
||||||
return applet()->dataEngine(name);
|
return applet()->dataEngine(name);
|
||||||
@ -379,11 +373,6 @@ QStringList AppletInterface::downloadedFiles() const
|
|||||||
return dir.entryList(QDir::Files | QDir::NoSymLinks | QDir::Readable);
|
return dir.entryList(QDir::Files | QDir::NoSymLinks | QDir::Readable);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppletInterface::gc()
|
|
||||||
{
|
|
||||||
QTimer::singleShot(0, m_appletScriptEngine, SLOT(collectGarbage()));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///////////// ContainmentInterface
|
///////////// ContainmentInterface
|
||||||
|
|
||||||
|
@ -219,7 +219,6 @@ enum IntervalAlignment {
|
|||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|
||||||
Q_INVOKABLE void gc();
|
|
||||||
Q_INVOKABLE FormFactor formFactor() const;
|
Q_INVOKABLE FormFactor formFactor() const;
|
||||||
|
|
||||||
Location location() const;
|
Location location() const;
|
||||||
@ -269,7 +268,6 @@ enum IntervalAlignment {
|
|||||||
bool userConfiguring() const;
|
bool userConfiguring() const;
|
||||||
int apiVersion() const;
|
int apiVersion() const;
|
||||||
|
|
||||||
static AppletInterface *extract(QScriptEngine *engine);
|
|
||||||
inline Plasma::Applet *applet() const { return m_appletScriptEngine->applet(); }
|
inline Plasma::Applet *applet() const { return m_appletScriptEngine->applet(); }
|
||||||
|
|
||||||
void setAssociatedApplication(const QString &string);
|
void setAssociatedApplication(const QString &string);
|
||||||
|
Loading…
Reference in New Issue
Block a user