diff options
author | Luca Di Sera <luca.disera@qt.io> | 2022-01-27 15:13:05 +0100 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2022-01-28 15:06:49 +0000 |
commit | 1461f654257e1b47096686140d3b0874cde76feb (patch) | |
tree | ffd22bc3baf61dde5f4c7691cd0ecc5c1ea7a1dd /src/qdoc/qmlcodemarker.cpp | |
parent | 3407004fa96f416de3d54612477765879d4e9651 (diff) | |
download | qttools-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/qmlcodemarker.cpp')
-rw-r--r-- | src/qdoc/qmlcodemarker.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/qdoc/qmlcodemarker.cpp b/src/qdoc/qmlcodemarker.cpp index 75070e52a..1401191e8 100644 --- a/src/qdoc/qmlcodemarker.cpp +++ b/src/qdoc/qmlcodemarker.cpp @@ -122,16 +122,6 @@ QString QmlCodeMarker::markedUpIncludes(const QStringList &includes) return addMarkUp(code, nullptr, location); } -QString QmlCodeMarker::functionBeginRegExp(const QString &funcName) -{ - return QLatin1Char('^') + QRegularExpression::escape("function " + funcName) + QLatin1Char('$'); -} - -QString QmlCodeMarker::functionEndRegExp(const QString & /* funcName */) -{ - return "^\\}$"; -} - QString QmlCodeMarker::addMarkUp(const QString &code, const Node * /* relative */, const Location &location) { |