summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-04-12 11:34:38 +0200
committerPaul Wicking <paul.wicking@qt.io>2023-04-13 14:52:26 +0200
commit3eb400c6ff46ea98deb1afa8894878923efd705a (patch)
tree505889b925e2d6dcee1ee5ea9dfb2498bfdf1bf3 /src
parent3bf73caacbaa4715ba4086b0a6f65d9b476ab256 (diff)
downloadqttools-3eb400c6ff46ea98deb1afa8894878923efd705a.tar.gz
QDoc: Remove unreachable code in WebXMLGenerator::addAtomElements
When the WebXML generator was revived in 2017, a case for handling QML atoms in the method `WebXMLGenerator::addAtomElements` was added under an `#ifdef QDOC_QML` guard. This is, according to esteemed historians, a remnant from the old Qt 4.7 implementation of the WebXML generator. However, since the revival, the define wasn't ever set by anything in neither QDoc nor the build system, effectively rendering this code unreachable. This change removes the `#ifdef [...] #endif` block, as removing the unused code won't lead to behavior change of QDoc. Task-number: QTBUG-112764 Change-Id: Ib9b50d4831e86c60de05065d315f421ae2289f64 Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qdoc/qdoc/webxmlgenerator.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qdoc/qdoc/webxmlgenerator.cpp b/src/qdoc/qdoc/webxmlgenerator.cpp
index 01204da53..c4f7b0340 100644
--- a/src/qdoc/qdoc/webxmlgenerator.cpp
+++ b/src/qdoc/qdoc/webxmlgenerator.cpp
@@ -365,14 +365,6 @@ const Atom *WebXMLGenerator::addAtomElements(QXmlStreamWriter &writer, const Ato
keepQuoting = true;
break;
-#ifdef QDOC_QML
- case Atom::Qml:
- if (!m_hasQuotingInformation)
- writer.writeTextElement(
- "qml", trimmedTrailing(plainCode(atom->string()), QString(), QString()));
- else
- keepQuoting = true;
-#endif
case Atom::CodeBad:
writer.writeTextElement("badcode",
trimmedTrailing(plainCode(atom->string()), QString(), QString()));