From 1bada8a3cf8b0a3f5660c0a7f92b2f501c11dea8 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Fri, 30 Apr 2021 09:53:34 +0000 Subject: Revert "QDoc: Add \deprecatedsince command" This reverts commit 1637d91efd8fb389bc09bdaa960f5d9d4f9e0164. Reason for revert: User feedback shows this implementation isn't good enough. Further discussion led to the discovery of a better approach. Task-number: QTBUG-58249 Change-Id: I48e0500ac95745b1ce10a29e77c6fa515b9e048f Reviewed-by: Kai Koehne --- src/qdoc/cppcodeparser.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/qdoc/cppcodeparser.cpp') diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index 7f03f6707..106e5f75d 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -522,7 +522,7 @@ void CppCodeParser::processMetaCommand(const Doc &doc, const QString &command, if (node->isFunction()) { auto *fn = static_cast(node); // The clang visitor class will have set the - // qualified name of the overridden function. + // qualified name of the ovverridden function. // If the name of the overridden function isn't // set, issue a warning. if (fn->overridesThis().isEmpty() && isWorthWarningAbout(doc)) { @@ -625,13 +625,7 @@ void CppCodeParser::processMetaCommand(const Doc &doc, const QString &command, if (node->isQmlType() || node->isJsType()) node->setAbstract(true); } else if (command == COMMAND_DEPRECATED) { - node->setStatus(Node::Deprecated); - } else if (command == COMMAND_DEPRECATED_SINCE) { - if (!arg.isEmpty()) - node->setDeprecatedSince(arg); - else - doc.location().warning( - QStringLiteral("Missing since version for \\%1").arg(COMMAND_DEPRECATED_SINCE)); + node->setStatus(Node::Obsolete); } else if (command == COMMAND_INGROUP || command == COMMAND_INPUBLICGROUP) { // Note: \ingroup and \inpublicgroup are the same (and now recognized as such). qdb_->addToGroup(arg, node); -- cgit v1.2.1