mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: remove unused and internal KPluginFactory methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b45b31b191
commit
39e687084e
3 changed files with 0 additions and 31 deletions
|
@ -166,22 +166,4 @@ void KPluginFactory::setComponentData(const KComponentData &kcd)
|
||||||
d->componentData = 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"
|
#include "moc_kpluginfactory.cpp"
|
||||||
|
|
|
@ -381,18 +381,6 @@ protected:
|
||||||
registerPlugin(keyword, &T::staticMetaObject, instanceFunction);
|
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();
|
virtual void setupTranslations();
|
||||||
|
|
||||||
KPluginFactoryPrivate *const d_ptr;
|
KPluginFactoryPrivate *const d_ptr;
|
||||||
|
|
|
@ -36,7 +36,6 @@ class KPluginFactoryPrivate
|
||||||
protected:
|
protected:
|
||||||
typedef QPair<const QMetaObject *, KPluginFactory::CreateInstanceFunction> Plugin;
|
typedef QPair<const QMetaObject *, KPluginFactory::CreateInstanceFunction> Plugin;
|
||||||
|
|
||||||
|
|
||||||
KPluginFactoryPrivate() : catalogInitialized(false) {}
|
KPluginFactoryPrivate() : catalogInitialized(false) {}
|
||||||
~KPluginFactoryPrivate()
|
~KPluginFactoryPrivate()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue