diff options
author | Paul Wicking <paul.wicking@qt.io> | 2023-04-01 07:12:29 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2023-04-03 18:28:01 +0200 |
commit | 754ca92fbf1a7b380b22a3aa81ae8404f6943fd0 (patch) | |
tree | 3b103e7989085025447a08e87e5ac76846cc9fa4 | |
parent | 089dbec0f808a6f3e2fb1232016779a60d1beef2 (diff) | |
download | qttools-754ca92fbf1a7b380b22a3aa81ae8404f6943fd0.tar.gz |
QDoc: Remove unused method and member from FunctionNode
The FunctionNode class contains the private member `m_parentPath` and
the associated public setter method setParentPath(). There is no
associated getter method, nor is the member variable ever read.
Furthermore, the setter is never called from anywhere.
Remove the member and setter as dead code. This reduces the public
API of the FunctionNode class and unclutters its internals just a bit.
Task-number: QTBUG-71176
Change-Id: Ic60f89eb5c0c96cf9261a5810a0a8b3e6342e9a1
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/qdoc/functionnode.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qdoc/functionnode.h b/src/qdoc/functionnode.h index 6ab01102b..c6e0c7333 100644 --- a/src/qdoc/functionnode.h +++ b/src/qdoc/functionnode.h @@ -51,7 +51,6 @@ public: static Genus getGenus(Metaness metaness); void setReturnType(const QString &type) { m_returnType = type; } - void setParentPath(const QStringList &path) { m_parentPath = path; } void setVirtualness(const QString &value); void setVirtualness(Virtualness virtualness) { m_virtualness = virtualness; } void setVirtual() { m_virtualness = NormalVirtual; } @@ -197,7 +196,6 @@ private: signed short m_overloadNumber {}; FunctionNode *m_nextOverload { nullptr }; QString m_returnType {}; - QStringList m_parentPath {}; QString m_overridesThis {}; QString m_tag {}; QList<PropertyNode *> m_associatedProperties {}; |