get rid of dummyGroup()

it was used only in extenders that don't exist anymore
This commit is contained in:
Marco Martin 2014-04-25 23:06:36 +02:00
parent 65c5c0dfe8
commit 38d06b784a
2 changed files with 1 additions and 21 deletions

View File

@ -73,28 +73,23 @@ class ServicePrivate
{
public:
ServicePrivate(Service *service)
: q(service),
dummyConfig(0)
: q(service)
{
}
~ServicePrivate()
{
delete dummyConfig;
}
void associatedWidgetDestroyed(QObject *obj);
void associatedItemDestroyed(QObject *obj);
KConfigGroup dummyGroup();
Service *q;
QString destination;
QString name;
QString resourcename;
QMap<QString, QVariantMap> operationsMap;
KConfig *dummyConfig;
QSet<QString> disabledOperations;
};

View File

@ -168,15 +168,6 @@ Service::~Service()
delete d;
}
KConfigGroup ServicePrivate::dummyGroup()
{
if (!dummyConfig) {
dummyConfig = new KConfig(QString(), KConfig::SimpleConfig);
}
return KConfigGroup(dummyConfig, "DummyGroup");
}
void Service::setDestination(const QString &destination)
{
d->destination = destination;
@ -259,9 +250,6 @@ void Service::setName(const QString &name)
// now reset the config, which may be based on our name
d->operationsMap.clear();
delete d->dummyConfig;
d->dummyConfig = 0;
registerOperationsScheme();
emit serviceReady(this);
@ -291,9 +279,6 @@ void Service::setOperationsScheme(QIODevice *xml)
{
d->operationsMap.clear();
delete d->dummyConfig;
d->dummyConfig = 0;
ConfigLoaderPrivate *configLoaderPrivate = new ConfigLoaderPrivate;
configLoaderPrivate->setWriteDefaults(true);
ConfigLoaderHandlerMap configLoaderHandler(0, configLoaderPrivate);