diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-16 14:21:53 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-08-07 17:44:51 +0200 |
commit | fe6a1d34dc2e5d24d55fac67657ffe760e2e3e51 (patch) | |
tree | f50f85965552dab9b5f3c4e90561af7b8d1b5c24 /src/corelib/io | |
parent | 4ef723c82db46689145a9d30d8d246cf8686bd25 (diff) |
QFileInfo: purge deprecated API
Since 5.10: created()
Since 5.13: readLink()
Change-Id: I9722f81750dd92315a67a1c38df41a95ae63e0db
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qfileinfo.cpp | 40 | ||||
-rw-r--r-- | src/corelib/io/qfileinfo.h | 8 |
2 files changed, 0 insertions, 48 deletions
diff --git a/src/corelib/io/qfileinfo.cpp b/src/corelib/io/qfileinfo.cpp index 062efcf40a..11db5dc146 100644 --- a/src/corelib/io/qfileinfo.cpp +++ b/src/corelib/io/qfileinfo.cpp @@ -1194,7 +1194,6 @@ bool QFileInfo::isRoot() const } /*! - \fn QString QFileInfo::symLinkTarget() const \since 4.2 Returns the absolute path to the file or directory a symbolic link @@ -1207,19 +1206,6 @@ bool QFileInfo::isRoot() const \sa exists(), isSymLink(), isDir(), isFile() */ - -#if QT_DEPRECATED_SINCE(5, 13) -/*! - \obsolete - - Use symLinkTarget() instead. -*/ -QString QFileInfo::readLink() const -{ - return symLinkTarget(); -} -#endif - QString QFileInfo::symLinkTarget() const { Q_D(const QFileInfo); @@ -1390,32 +1376,6 @@ qint64 QFileInfo::size() const }); } -#if QT_DEPRECATED_SINCE(5, 10) -/*! - \deprecated - - Returns the date and time when the file was created, the time its metadata - was last changed or the time of last modification, whichever one of the - three is available (in that order). - - This function is deprecated. Instead, use the birthTime() function to get - the time the file was created, metadataChangeTime() to get the time its - metadata was last changed, or lastModified() to get the time it was last modified. - - If the file is a symlink, the time of the target file is returned - (not the symlink). - - \sa birthTime(), metadataChangeTime(), lastModified(), lastRead() -*/ -QDateTime QFileInfo::created() const -{ - QDateTime d = fileTime(QFile::FileBirthTime); - if (d.isValid()) - return d; - return fileTime(QFile::FileMetadataChangeTime); -} -#endif - /*! \since 5.10 Returns the date and time when the file was created / born. diff --git a/src/corelib/io/qfileinfo.h b/src/corelib/io/qfileinfo.h index d7cc51c7df..aea0927310 100644 --- a/src/corelib/io/qfileinfo.h +++ b/src/corelib/io/qfileinfo.h @@ -151,10 +151,6 @@ public: bool isRoot() const; bool isBundle() const; -#if QT_DEPRECATED_SINCE(5, 13) - QT_DEPRECATED_X("Use QFileInfo::symLinkTarget() instead") - QString readLink() const; -#endif QString symLinkTarget() const; #if QT_CONFIG(cxx17_filesystem) std::filesystem::path filesystemSymLinkTarget() const @@ -172,10 +168,6 @@ public: qint64 size() const; // ### Qt6: inline these functions -#if QT_DEPRECATED_SINCE(5, 10) - QT_DEPRECATED_X("Use either birthTime() or metadataChangeTime()") - QDateTime created() const; -#endif QDateTime birthTime() const; QDateTime metadataChangeTime() const; QDateTime lastModified() const; |