summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-05-08 10:11:14 +0200
committerThiago Macieira <thiago.macieira@intel.com>2025-05-08 22:33:35 +0200
commit1dae56833bed62fb7f1f22597e324cc28640f874 (patch)
tree2855186d29da6fc694cab068183203da1849c374 /src
parent8643ae7a766b0f1c24d11d2dc64af6f23c307ad0 (diff)
QFSFileEngine: remove unused internal functions
Everyone is just using the QFileSystemEngine API directly. Change-Id: I74ccbe72cd091c667b39fffd22822c231bc02e90 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qfsfileengine.cpp29
-rw-r--r--src/corelib/io/qfsfileengine_p.h3
-rw-r--r--src/corelib/io/qfsfileengine_unix.cpp2
3 files changed, 1 insertions, 33 deletions
diff --git a/src/corelib/io/qfsfileengine.cpp b/src/corelib/io/qfsfileengine.cpp
index 6e48064cd34..c45b7a58acd 100644
--- a/src/corelib/io/qfsfileengine.cpp
+++ b/src/corelib/io/qfsfileengine.cpp
@@ -892,35 +892,6 @@ bool QFSFileEngine::supportsExtension(Extension extension) const
\reimp
*/
-/*!
- Returns the home path of the current user.
-
- \sa rootPath()
-*/
-QString QFSFileEngine::homePath()
-{
- return QFileSystemEngine::homePath();
-}
-
-/*!
- Returns the root path.
-
- \sa homePath()
-*/
-QString QFSFileEngine::rootPath()
-{
- return QFileSystemEngine::rootPath();
-}
-
-/*!
- Returns the temporary path (i.e., a path in which it is safe
- to store temporary files).
-*/
-QString QFSFileEngine::tempPath()
-{
- return QFileSystemEngine::tempPath();
-}
-
/*! \fn bool QFSFileEngine::isRelativePath() const
\reimp
*/
diff --git a/src/corelib/io/qfsfileengine_p.h b/src/corelib/io/qfsfileengine_p.h
index 8744a8f53ef..837ec55b93a 100644
--- a/src/corelib/io/qfsfileengine_p.h
+++ b/src/corelib/io/qfsfileengine_p.h
@@ -107,9 +107,6 @@ public:
bool open(QIODevice::OpenMode flags, FILE *fh, QFile::FileHandleFlags handleFlags);
static bool setCurrentPath(const QString &path);
static QString currentPath(const QString &path = QString());
- static QString homePath();
- static QString rootPath();
- static QString tempPath();
static QFileInfoList drives();
protected:
diff --git a/src/corelib/io/qfsfileengine_unix.cpp b/src/corelib/io/qfsfileengine_unix.cpp
index 45a8332512b..ec0ae9c8b11 100644
--- a/src/corelib/io/qfsfileengine_unix.cpp
+++ b/src/corelib/io/qfsfileengine_unix.cpp
@@ -303,7 +303,7 @@ QString QFSFileEngine::currentPath(const QString &)
QFileInfoList QFSFileEngine::drives()
{
QFileInfoList ret;
- ret.append(QFileInfo(rootPath()));
+ ret.append(QFileInfo(QFileSystemEngine::rootPath()));
return ret;
}