diff options
author | Paul Wicking <paul.wicking@qt.io> | 2023-04-01 08:58:47 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2023-04-03 18:28:03 +0200 |
commit | 582ab22a6c0274a0d669a602aa29d2042eec5f64 (patch) | |
tree | d7d64cbb11359fe7dcb0603013d69f24945814b9 /src/qdoc | |
parent | 754ca92fbf1a7b380b22a3aa81ae8404f6943fd0 (diff) | |
download | qttools-582ab22a6c0274a0d669a602aa29d2042eec5f64.tar.gz |
QDoc: Remove unused method from FunctionNode
The FunctionNode class contains the public method setVirtual().
The method's intent is to set the private member m_virtualness
to FunctionNode::Virtualness::NormalVirtual. This behavior is
achieved, and exercised in QDoc, by calling another method of
the same class, setVirtualness(Virtualness), which offers the
option of passing any value from the FunctionNode::Virtualness
enum, making that API more flexible than that of setVirtual()
which doesn't take any arguments.
As the private member is set in code by a different setter,
and because the setVirtual() method is unused, remove the latter
as dead code.
Task-number: QTBUG-71176
Change-Id: Ieab1fa5b6be92e481fc9df887816fec3f08bbdaf
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc')
-rw-r--r-- | src/qdoc/functionnode.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qdoc/functionnode.h b/src/qdoc/functionnode.h index c6e0c7333..cb183328a 100644 --- a/src/qdoc/functionnode.h +++ b/src/qdoc/functionnode.h @@ -53,7 +53,6 @@ public: void setReturnType(const QString &type) { m_returnType = type; } void setVirtualness(const QString &value); void setVirtualness(Virtualness virtualness) { m_virtualness = virtualness; } - void setVirtual() { m_virtualness = NormalVirtual; } void setConst(bool b) { m_const = b; } void setDefault(bool b) { m_default = b; } void setStatic(bool b) { m_static = b; } |