diff options
author | Luca Di Sera <luca.disera@qt.io> | 2023-03-24 11:13:45 +0100 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2023-03-27 11:44:38 +0100 |
commit | 3e67f3d5538522efebf99855c1cd7c2eca3f61f9 (patch) | |
tree | 940b84aed17f3900a27a8a526d409ea5f5982367 | |
parent | df735050ecd01687f17df8f161c706541319ad05 (diff) | |
download | qttools-3e67f3d5538522efebf99855c1cd7c2eca3f61f9.tar.gz |
QDoc: Remove unused variable `sourceFileNames`
When QDoc runs it collects a series of input source files based on
certain configuration variables.
The files are collected into two maps, in `processQDocConfFile`,
`sources` and `sourceFileNames`.
The collected input source files are later used as the base for
extracting the user-provided documentation.
Nonetheless, `sourceFileNames`, which is populated along with `sources`
was never used and is thus removed as dead code.
Change-Id: Ie02025e8b1054e4a4f3e9235ee1cc2d7631a2935
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/qdoc/main.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp index 112b9400b..fdf4ba79f 100644 --- a/src/qdoc/main.cpp +++ b/src/qdoc/main.cpp @@ -479,15 +479,12 @@ static void processQdocconfFile(const QString &fileName) sourceList = config.getAllFiles(CONFIG_SOURCES, CONFIG_SOURCEDIRS, excludedDirs, excludedFiles); QMap<QString, QString> sources; - QMultiMap<QString, QString> sourceFileNames; for (const auto &source : sourceList) { if (source.contains(QLatin1String("doc/snippets"))) continue; if (sources.contains(source)) continue; sources.insert(source, source); - QString t = source.mid(source.lastIndexOf('/') + 1); - sourceFileNames.insert(t, t); } /* Find all the qdoc files in the example dirs, and add @@ -498,8 +495,6 @@ static void processQdocconfFile(const QString &fileName) for (const auto &example : exampleQdocList) { if (!sources.contains(example)) { sources.insert(example, example); - QString t = example.mid(example.lastIndexOf('/') + 1); - sourceFileNames.insert(t, t); } } /* |