summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
authorLuca Di Sera <luca.disera@qt.io>2022-01-27 15:13:05 +0100
committerLuca Di Sera <luca.disera@qt.io>2022-01-28 15:06:49 +0000
commit1461f654257e1b47096686140d3b0874cde76feb (patch)
treeffd22bc3baf61dde5f4c7691cd0ecc5c1ea7a1dd /src/qdoc/cppcodemarker.cpp
parent3407004fa96f416de3d54612477765879d4e9651 (diff)
downloadqttools-1461f654257e1b47096686140d3b0874cde76feb.tar.gz
qdoc: Remove quotefunction from the codebase
The codebase for QDoc implements a command, 'quotefunction', that eases quoting a specifying function from a currently being-quoted file. The command is unused in Qt's documentation, is undocumented in the QDoc manual and only appears as a string (but not a call to the command itself), inside of the files used by `tst_generatedOutput`. While, arguably, there might be some use to higher-level commands that simplify common operations that might be done trough the use of the `quotefromfile` family of commands, `quotefunction` itself is, currently, no more than dead code, and is thus removed, knowing that it can be reintroduced with ease should the need arise, as a mean to simplify the upcoming changes to the quoting system. `DocParser::slashed` is now removed as it was used only during the processing of a 'quotefunction' command. The machinery which supported this feature in the `CodeMarker` family of classes, `functionBeginRegExp` and `functionEndRegExp`, was removed as it is now unused. The `quotefunction` string in the input data to `tst_generatedOutput` was removed and the output was regenerated to take the change into account. Change-Id: Ied2b04e0f3f1a74ff60300e83e2a514de872b7cb Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
-rw-r--r--src/qdoc/cppcodemarker.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp
index 8f7dfc9e4..91f0c4c00 100644
--- a/src/qdoc/cppcodemarker.cpp
+++ b/src/qdoc/cppcodemarker.cpp
@@ -348,16 +348,6 @@ QString CppCodeMarker::markedUpIncludes(const QStringList &includes)
return code;
}
-QString CppCodeMarker::functionBeginRegExp(const QString &funcName)
-{
- return QLatin1Char('^') + QRegularExpression::escape(funcName) + QLatin1Char('$');
-}
-
-QString CppCodeMarker::functionEndRegExp(const QString & /* funcName */)
-{
- return "^\\}$";
-}
-
/*
@char
@class