diff --git a/plasma/theme.cpp b/plasma/theme.cpp index 28a3f1a5a..723bbf412 100644 --- a/plasma/theme.cpp +++ b/plasma/theme.cpp @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -510,12 +509,6 @@ Theme::~Theme() 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) { if (file.endsWith(themeRcFile)) { diff --git a/plasma/theme.h b/plasma/theme.h index d46941796..0791548a6 100644 --- a/plasma/theme.h +++ b/plasma/theme.h @@ -104,12 +104,6 @@ class PLASMA_EXPORT Theme : public QObject ~Theme(); - /** - * @return a list of all known themes - * @since 4.3 - */ - static KPluginInfo::List listThemeInfo(); - /** * Sets the current theme being used. */