nothing used the list theme info method.

anything that wanted a list of all themes did not want just plugin info
but also the paths, etc. which made this method useless

it may be worthwhile to have a "find all theme paths" replacement
This commit is contained in:
Aaron Seigo 2013-02-13 14:47:36 +01:00
parent 2203be8e13
commit 3540524072
2 changed files with 0 additions and 13 deletions

View File

@ -43,7 +43,6 @@
#include <kmanagerselection.h> #include <kmanagerselection.h>
#include <kimagecache.h> #include <kimagecache.h>
#include <ksharedconfig.h> #include <ksharedconfig.h>
#include <kstandarddirs.h>
#include <kwindoweffects.h> #include <kwindoweffects.h>
#include <kwindowsystem.h> #include <kwindowsystem.h>
#include <qstandardpaths.h> #include <qstandardpaths.h>
@ -510,12 +509,6 @@ Theme::~Theme()
delete d; delete d;
} }
KPluginInfo::List Theme::listThemeInfo()
{
const QStringList themes = KGlobal::dirs()->findAllResources("data", "desktoptheme/*/metadata.desktop", KStandardDirs::NoDuplicates);
return KPluginInfo::fromFiles(themes);
}
void ThemePrivate::settingsFileChanged(const QString &file) void ThemePrivate::settingsFileChanged(const QString &file)
{ {
if (file.endsWith(themeRcFile)) { if (file.endsWith(themeRcFile)) {

View File

@ -104,12 +104,6 @@ class PLASMA_EXPORT Theme : public QObject
~Theme(); ~Theme();
/**
* @return a list of all known themes
* @since 4.3
*/
static KPluginInfo::List listThemeInfo();
/** /**
* Sets the current theme being used. * Sets the current theme being used.
*/ */