diff options
author | Luca Di Sera <luca.disera@qt.io> | 2022-09-01 15:24:27 +0200 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2022-09-02 15:45:40 +0200 |
commit | cc00255e0176d4344ad5606c7081f32e81a232f7 (patch) | |
tree | 50424bb09b59e3cab432ef63ef45591e516a959a /src | |
parent | ee64774559478596db3665793c46f5da3aaf7147 (diff) | |
download | qttools-cc00255e0176d4344ad5606c7081f32e81a232f7.tar.gz |
QDoc: Remove Node::match
The method was unused in the codebase and is not expected to serve any
purpose in the current or future codebase.
Change-Id: I65f523c0e2989074cbffc1968ee0e8214f29982c
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qdoc/node.cpp | 11 | ||||
-rw-r--r-- | src/qdoc/node.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/qdoc/node.cpp b/src/qdoc/node.cpp index 21869e597..1142d446a 100644 --- a/src/qdoc/node.cpp +++ b/src/qdoc/node.cpp @@ -627,17 +627,6 @@ QString Node::fullName(const Node *relative) const } /*! - Try to match this node's type with one of the \a types. - If a match is found, return true. If no match is found, - return false. - */ -bool Node::match(const QList<int> &types) const -{ - return std::any_of(types.cbegin(), types.cend(), - [this](const int type) { return nodeType() == type; }); -} - -/*! Sets this Node's Doc to \a doc. If \a replace is false and this Node already has a Doc, and if this doc is not marked with the \\reimp command, a warning is reported that the diff --git a/src/qdoc/node.h b/src/qdoc/node.h index e5bc1bbf0..fcadc036d 100644 --- a/src/qdoc/node.h +++ b/src/qdoc/node.h @@ -263,7 +263,6 @@ public: virtual void markDefault() {} virtual void markReadOnly(bool) {} - [[nodiscard]] bool match(const QList<int> &types) const; [[nodiscard]] Aggregate *parent() const { return m_parent; } [[nodiscard]] const QString &name() const { return m_name; } [[nodiscard]] QString physicalModuleName() const { return m_physicalModuleName; } |