summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-03-27 12:52:55 +0200
committerPaul Wicking <paul.wicking@qt.io>2023-03-30 13:01:39 +0200
commit7d9adc2fa6b87c1c99bc8bab903b8d1a83307dc5 (patch)
tree2524c07a305be2be4d6d411eeb282e505a650a41
parentdac22d8947c3beeaf25b0ef49619aa2ce9ef4974 (diff)
downloadqttools-7d9adc2fa6b87c1c99bc8bab903b8d1a83307dc5.tar.gz
QDoc: Remove unused enum value and case from ClangCodeParser
A recent change made the enum value ClangCodeParser::buildPCH::FindPredicate::SearchType::Private unused. Remove the enum value and the case that considers it. Change-Id: If3f4379bdad2339e873e347e422df35871629d38 Reviewed-by: Luca Di Sera <luca.disera@qt.io>
-rw-r--r--src/qdoc/clangcodeparser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp
index f82a222e6..f4a6e491b 100644
--- a/src/qdoc/clangcodeparser.cpp
+++ b/src/qdoc/clangcodeparser.cpp
@@ -1366,7 +1366,7 @@ void ClangCodeParser::buildPCH(QString module_header)
// (e.g. QtGui/QtGui) to be used as pre-compiled header
struct FindPredicate
{
- enum SearchType { Any, Module, Private };
+ enum SearchType { Any, Module };
QByteArray &candidate_;
const QByteArray &module_;
SearchType type_;
@@ -1386,9 +1386,6 @@ void ClangCodeParser::buildPCH(QString module_header)
case Module:
candidate_.append(module_);
break;
- case Private:
- candidate_.append("private");
- break;
default:
break;
}