From 354052407276a593ae8cdd495e10b9cfc58a207c Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Wed, 13 Feb 2013 14:47:36 +0100 Subject: [PATCH] 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 --- plasma/theme.cpp | 7 ------- plasma/theme.h | 6 ------ 2 files changed, 13 deletions(-) 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. */