Remove some dead code

This commit is contained in:
Sebastian Kügler 2014-01-31 02:06:09 +01:00
parent ac1aba0f2a
commit 1c4f14c177
2 changed files with 2 additions and 29 deletions

View File

@ -92,8 +92,7 @@ ThemePrivate::ThemePrivate(QObject *parent)
} }
installEventFilter(qApp); installEventFilter(qApp);
configWatcher = KDirWatch::self(); const QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + themeRcFile;
const QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QStringLiteral("/plasmarc");
KDirWatch::self()->addFile(configLocation); KDirWatch::self()->addFile(configLocation);
connect(KDirWatch::self(), &KDirWatch::dirty, this, &ThemePrivate::settingsFileChanged); connect(KDirWatch::self(), &KDirWatch::dirty, this, &ThemePrivate::settingsFileChanged);
@ -111,7 +110,7 @@ ThemePrivate::~ThemePrivate()
KConfigGroup &ThemePrivate::config() KConfigGroup &ThemePrivate::config()
{ {
if (!cfg.isValid()) { if (!cfg.isValid()) {
QString groupName = "Theme-plasma-shell"; QString groupName = "Theme";
if (!useGlobal) { if (!useGlobal) {
QString app = QCoreApplication::applicationName(); QString app = QCoreApplication::applicationName();
@ -132,28 +131,6 @@ KConfigGroup &ThemePrivate::config()
} }
void ThemePrivate::configDirty(const QString &path)
{
qDebug() << "config dirty: " << path;
//config()->reparseConfiguration();
settingsChanged();
}
void ThemePrivate::configCreated(const QString& path)
{
qDebug() << "config created: " << path;
settingsChanged();
emit themeChanged();
}
void ThemePrivate::configDeleted(const QString& path)
{
qDebug() << "config deleted: " << path;
//settingsChanged();
}
bool ThemePrivate::useCache() bool ThemePrivate::useCache()
{ {
if (cacheTheme && !pixmapCache) { if (cacheTheme && !pixmapCache) {

View File

@ -94,10 +94,6 @@ public Q_SLOTS:
void notifyOfChanged(); void notifyOfChanged();
void settingsChanged(); void settingsChanged();
void configDirty(const QString &path);
void configCreated(const QString &path);
void configDeleted(const QString &path);
Q_SIGNALS: Q_SIGNALS:
void themeChanged(); void themeChanged();
void defaultFontChanged(); void defaultFontChanged();