From 39e687084ef24d5a7424a4839cc0ae3e3ef87e00 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 23 Sep 2022 19:05:28 +0300 Subject: [PATCH] kdecore: remove unused and internal KPluginFactory methods Signed-off-by: Ivailo Monev --- kdecore/util/kpluginfactory.cpp | 18 ------------------ kdecore/util/kpluginfactory.h | 12 ------------ kdecore/util/kpluginfactory_p.h | 1 - 3 files changed, 31 deletions(-) diff --git a/kdecore/util/kpluginfactory.cpp b/kdecore/util/kpluginfactory.cpp index 4a582499..07750035 100644 --- a/kdecore/util/kpluginfactory.cpp +++ b/kdecore/util/kpluginfactory.cpp @@ -166,22 +166,4 @@ void KPluginFactory::setComponentData(const KComponentData &kcd) d->componentData = kcd; } -// KDE5 TODO: should be static, and possibly public (for apps to use) -QStringList KPluginFactory::variantListToStringList(const QVariantList &list) -{ - QStringList stringlist; - Q_FOREACH(const QVariant& var, list) - stringlist << var.toString(); - return stringlist; -} - -// KDE5 TODO: should be static, and possibly public (for apps to use) -QVariantList KPluginFactory::stringListToVariantList(const QStringList &list) -{ - QVariantList variantlist; - Q_FOREACH(const QString& str, list) - variantlist << QVariant(str); - return variantlist; -} - #include "moc_kpluginfactory.cpp" diff --git a/kdecore/util/kpluginfactory.h b/kdecore/util/kpluginfactory.h index b8201f1f..ed26addd 100644 --- a/kdecore/util/kpluginfactory.h +++ b/kdecore/util/kpluginfactory.h @@ -381,18 +381,6 @@ protected: registerPlugin(keyword, &T::staticMetaObject, instanceFunction); } - /** - * \internal - * Converts a QStringList to a QVariantList - */ - QVariantList stringListToVariantList(const QStringList &list); - - /** - * \internal - * Converts a QVariantList of strings to a QStringList - */ - QStringList variantListToStringList(const QVariantList &list); - virtual void setupTranslations(); KPluginFactoryPrivate *const d_ptr; diff --git a/kdecore/util/kpluginfactory_p.h b/kdecore/util/kpluginfactory_p.h index 7e547466..b2101fd8 100644 --- a/kdecore/util/kpluginfactory_p.h +++ b/kdecore/util/kpluginfactory_p.h @@ -36,7 +36,6 @@ class KPluginFactoryPrivate protected: typedef QPair Plugin; - KPluginFactoryPrivate() : catalogInitialized(false) {} ~KPluginFactoryPrivate() {