get rid of Applet::shouldConserveResources()

This commit is contained in:
Marco Martin 2013-02-12 11:51:05 +01:00
parent 70abf37a52
commit b9036999f2
4 changed files with 0 additions and 24 deletions

View File

@ -428,15 +428,6 @@ KPluginInfo Applet::pluginInfo() const
return d->appletDescription;
}
bool Applet::shouldConserveResources() const
{
#if !PLASMA_NO_SOLID
return Solid::PowerManagement::appShouldConserveResources();
#else
return true;
#endif
}
QString Applet::category(const KPluginInfo &applet)
{
return applet.property("X-KDE-PluginInfo-Category").toString();

View File

@ -358,14 +358,6 @@ class PLASMA_EXPORT Applet : public QObject
**/
QString icon() const;
/**
* Whether the applet should conserve resources. If true, try to avoid doing stuff which
* is computationally heavy. Try to conserve power and resources.
*
* @return true if it should conserve resources, false if it does not.
*/
bool shouldConserveResources() const;
//ACTIONS

View File

@ -80,11 +80,6 @@ QString AppletInterface::currentActivity() const
return applet()->containment()->activity();
}
bool AppletInterface::shouldConserveResources() const
{
return applet()->shouldConserveResources();
}
void AppletInterface::setFailedToLaunch(bool failed, const QString &reason)
{
m_appletScriptEngine->setFailedToLaunch(failed, reason);

View File

@ -62,7 +62,6 @@ class AppletInterface : public QQuickItem
Q_PROPERTY(FormFactor formFactor READ formFactor NOTIFY formFactorChanged)
Q_PROPERTY(Location location READ location NOTIFY locationChanged)
Q_PROPERTY(QString currentActivity READ currentActivity NOTIFY contextChanged)
Q_PROPERTY(bool shouldConserveResources READ shouldConserveResources)
Q_PROPERTY(QString activeConfig WRITE setActiveConfig READ activeConfig)
Q_PROPERTY(bool busy WRITE setBusy READ isBusy)
Q_PROPERTY(BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints NOTIFY backgroundHintsChanged)
@ -207,7 +206,6 @@ enum IntervalAlignment {
Location location() const;
QString currentActivity() const;
bool shouldConserveResources() const;
Q_INVOKABLE void setFailedToLaunch(bool failed, const QString &reason = QString());