From a2bdad8a93e587d7844c6db4ab17ae0edf67dbd6 Mon Sep 17 00:00:00 2001 From: Luca Di Sera Date: Mon, 13 Mar 2023 17:02:26 +0100 Subject: QDoc: Remove `CppCodeParser::ExtraFuncData` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `CppCodeParser`, the class that generally takes care of providing the semantics of topics and meta commands for QDoc, exposed an inner class `ExtraFuncData`, that bundled together some of the data that QDoc might use when processing certain elements of the documentation. `ExtraFuncData` was instantiated once and never used. Supposedly, it was the either the result of a never finished refactoring or was suppressed away during a refactoring, without the complete code being cleaned of it. Nonetheless, it is now removed as dead code. Its single unused instantiation in `CppCodeParser::processTopicCommand` was removed as a consequence of the removal of the class. Change-Id: I7212cd0538421bb3c5e60517f53afb2eb4bd90bf Reviewed-by: Topi Reiniƶ --- src/qdoc/cppcodeparser.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/qdoc/cppcodeparser.cpp') diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index f8d829187..0f0cfe1cf 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -151,7 +151,6 @@ const QSet &CppCodeParser::topicCommands() Node *CppCodeParser::processTopicCommand(const Doc &doc, const QString &command, const ArgPair &arg) { - ExtraFuncData extra; if (command == COMMAND_FN) { Q_UNREACHABLE(); } else if (s_nodeTypeMap.contains(command)) { -- cgit v1.2.1