diff options
author | Martin Smith <martin.smith@qt.io> | 2018-04-26 15:01:06 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2018-06-01 12:14:31 +0000 |
commit | 1beb7d176492c284640082e6c8d7b9b37d5ce0f0 (patch) | |
tree | 10bf62c3eeecaa2ae4089639274e21084b429917 /src/qdoc/cppcodeparser.cpp | |
parent | 8ad79b032432be398f8f2a8107131ba19eff7ff4 (diff) | |
download | qttools-1beb7d176492c284640082e6c8d7b9b37d5ce0f0.tar.gz |
qdoc: Remove support for \compat command
The \compat command is no longer needed in QDoc, and the code that
supports it makes some parts of QDoc needlessly complex. This update
removes it, along with the documentation for it in the QDoc manual.
Change-Id: I249b571e24ff8c3530d1ae5dbb4fff9186dba49d
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/qdoc/cppcodeparser.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index 3471e2cc1..b700823e5 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -823,29 +823,6 @@ bool CppCodeParser::skipTo(int target) return tok == target; } -/*! - If the current token is one of the keyword thingees that - are used in Qt, skip over it to the next token and return - true. Otherwise just return false without reading the - next token. - */ -bool CppCodeParser::matchCompat() -{ - switch (tok) { - case Tok_QT_COMPAT: - case Tok_QT_COMPAT_CONSTRUCTOR: - case Tok_QT_DEPRECATED: - case Tok_QT_MOC_COMPAT: - case Tok_QT3_SUPPORT: - case Tok_QT3_SUPPORT_CONSTRUCTOR: - case Tok_QT3_MOC_SUPPORT: - readToken(); - return true; - default: - return false; - } -} - bool CppCodeParser::matchModuleQualifier(QString& name) { bool matches = (lexeme() == QString('.')); |