Remove unused member

This commit is contained in:
Sebastian Kügler 2014-01-31 02:25:25 +01:00
parent 1c4f14c177
commit e0fbf3473f
2 changed files with 4 additions and 7 deletions

View File

@ -57,7 +57,6 @@ ThemePrivate::ThemePrivate(QObject *parent)
defaultWallpaperWidth(DEFAULT_WALLPAPER_WIDTH), defaultWallpaperWidth(DEFAULT_WALLPAPER_WIDTH),
defaultWallpaperHeight(DEFAULT_WALLPAPER_HEIGHT), defaultWallpaperHeight(DEFAULT_WALLPAPER_HEIGHT),
pixmapCache(0), pixmapCache(0),
configWatcher(0),
cacheSize(0), cacheSize(0),
cachesToDiscard(NoCache), cachesToDiscard(NoCache),
locolor(false), locolor(false),
@ -92,14 +91,13 @@ ThemePrivate::ThemePrivate(QObject *parent)
} }
installEventFilter(qApp); installEventFilter(qApp);
const QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + themeRcFile; const QString configFile = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + themeRcFile;
KDirWatch::self()->addFile(configLocation); KDirWatch::self()->addFile(configFile);
// Catch both, direct changes to the config file ...
connect(KDirWatch::self(), &KDirWatch::dirty, this, &ThemePrivate::settingsFileChanged); connect(KDirWatch::self(), &KDirWatch::dirty, this, &ThemePrivate::settingsFileChanged);
// ... but also remove/recreate cycles, like KConfig does it
connect(KDirWatch::self(), &KDirWatch::created, this, &ThemePrivate::settingsFileChanged); connect(KDirWatch::self(), &KDirWatch::created, this, &ThemePrivate::settingsFileChanged);
qDebug() << "Theme ctor " << themeName << QCoreApplication::applicationName();
qDebug() << "configfile: " << configLocation;
} }
ThemePrivate::~ThemePrivate() ThemePrivate::~ThemePrivate()

View File

@ -135,7 +135,6 @@ public:
QHash<QString, QString> discoveries; QHash<QString, QString> discoveries;
QTimer *saveTimer; QTimer *saveTimer;
QTimer *updateNotificationTimer; QTimer *updateNotificationTimer;
KDirWatch *configWatcher;
unsigned cacheSize; unsigned cacheSize;
CacheTypes cachesToDiscard; CacheTypes cachesToDiscard;