From e1fd748982dc5c335aa66766c62aa4e4d5d1bc6c Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 15 Mar 2017 13:27:08 +0100 Subject: Remove unused QDateTime in KConfigBackend. Spotted because it leads to race conditions due to tzset (surely a Qt bug, but anyway no point in finding out lastModified for nothing). While at it, remove the unused size field as well. --- src/core/kconfigbackend_p.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/core/kconfigbackend_p.h') diff --git a/src/core/kconfigbackend_p.h b/src/core/kconfigbackend_p.h index 0a63a687..d2e3de4e 100644 --- a/src/core/kconfigbackend_p.h +++ b/src/core/kconfigbackend_p.h @@ -34,7 +34,6 @@ class KConfigBackendPrivate; class KEntryMap; class QFile; class QByteArray; -class QDateTime; /** * \class KConfigBackend kconfigbackend_p.h @@ -181,19 +180,11 @@ public: */ virtual bool isLocked() const = 0; - /** - * @return the date and time when the object was last modified - */ - QDateTime lastModified() const; /** @return the absolute path to the object */ QString filePath() const; - /** @return the size of the object */ - qint64 size() const; protected: KConfigBackend(); - void setLastModified(const QDateTime &dt); - void setSize(qint64 sz); void setLocalFilePath(const QString &file); private: -- cgit v1.2.1