configGroup(QString) is redundant with config()

This commit is contained in:
Aaron Seigo 2011-12-06 17:45:25 +01:00
parent 135dee0367
commit 6dd71f8120
2 changed files with 0 additions and 19 deletions

View File

@ -350,16 +350,6 @@ void Applet::saveState(KConfigGroup &group) const
}
}
KConfigGroup Applet::config(const QString &group) const
{
if (d->transient) {
return KConfigGroup(KGlobal::config(), "PlasmaTransientsConfig");
}
KConfigGroup cg = config();
return KConfigGroup(&cg, group);
}
KConfigGroup Applet::config() const
{
if (d->transient) {

View File

@ -107,15 +107,6 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
**/
KConfigGroup config() const;
/**
* Returns a config group with the name provided. This ensures
* that the group name is properly namespaced to avoid collision
* with other applets that may be sharing this config file
*
* @param group the name of the group to access
**/
KConfigGroup config(const QString &group) const;
/**
* Saves state information about this applet that will
* be accessed when next instantiated in the restore(KConfigGroup&) method.