From 754ca92fbf1a7b380b22a3aa81ae8404f6943fd0 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Sat, 1 Apr 2023 07:12:29 +0200 Subject: QDoc: Remove unused method and member from FunctionNode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ƶ --- src/qdoc/functionnode.h | 2 -- 1 file changed, 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 m_associatedProperties {}; -- cgit v1.2.1