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: public:
ServicePrivate(Service *service) ServicePrivate(Service *service)
: q(service), : q(service)
dummyConfig(0)
{ {
} }
~ServicePrivate() ~ServicePrivate()
{ {
delete dummyConfig;
} }
void associatedWidgetDestroyed(QObject *obj); void associatedWidgetDestroyed(QObject *obj);
void associatedItemDestroyed(QObject *obj); void associatedItemDestroyed(QObject *obj);
KConfigGroup dummyGroup();
Service *q; Service *q;
QString destination; QString destination;
QString name; QString name;
QString resourcename; QString resourcename;
QMap<QString, QVariantMap> operationsMap; QMap<QString, QVariantMap> operationsMap;
KConfig *dummyConfig;
QSet<QString> disabledOperations; QSet<QString> disabledOperations;
}; };

View File

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