diff options
Diffstat (limited to 'src/qdoc/config.cpp')
-rw-r--r-- | src/qdoc/config.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/qdoc/config.cpp b/src/qdoc/config.cpp index 467f6ef09..57e71baf3 100644 --- a/src/qdoc/config.cpp +++ b/src/qdoc/config.cpp @@ -931,36 +931,6 @@ int Config::numParams(const QString &value) } /*! - Removes everything from \a dir. This function is recursive. - It doesn't remove \a dir itself, but if it was called - recursively, then the caller will remove \a dir. - */ -bool Config::removeDirContents(const QString &dir) -{ - QDir dirInfo(dir); - const QFileInfoList entries = dirInfo.entryInfoList(); - - bool ok = true; - - for (const auto &entry : entries) { - if (entry.isFile()) { - if (!dirInfo.remove(entry.fileName())) - ok = false; - } else if (entry.isDir()) { - if (entry.fileName() != QLatin1String(".") && entry.fileName() != QLatin1String("..")) { - if (removeDirContents(entry.absoluteFilePath())) { - if (!dirInfo.rmdir(entry.fileName())) - ok = false; - } else { - ok = false; - } - } - } - } - return ok; -} - -/*! Returns \c true if \a ch is a letter, number, '_', '.', '{', '}', or ','. */ |