summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-03-04 14:50:59 +0100
committerPaul Wicking <paul.wicking@qt.io>2023-03-10 18:09:17 +0100
commita9f28aa939f9f994b420fdfb4cccc0053cd7382c (patch)
tree0f6bb09073b120c8b7f1af9cf4f3f3ed2322f429
parent5f3f87ba0f9a000ee2690d44afe053538c2f78d8 (diff)
downloadqttools-a9f28aa939f9f994b420fdfb4cccc0053cd7382c.tar.gz
QDoc: Remove unused method
The comment "try to make this private" made me curious, and I found the method that followed isn't actually used anywhere. Remove the comment and method. Upon further inspection, a couple of other methods turn out also not being called from anywhere. Drop these as well. Change-Id: I84a5aa8f6e5aad6832b2757c8c2293a51dffa898 Reviewed-by: Luca Di Sera <luca.disera@qt.io>
-rw-r--r--src/qdoc/qdocdatabase.cpp12
-rw-r--r--src/qdoc/qdocdatabase.h8
2 files changed, 0 insertions, 20 deletions
diff --git a/src/qdoc/qdocdatabase.cpp b/src/qdoc/qdocdatabase.cpp
index 0f65dba9b..a372d0379 100644
--- a/src/qdoc/qdocdatabase.cpp
+++ b/src/qdoc/qdocdatabase.cpp
@@ -73,18 +73,6 @@ QDocForest::~QDocForest()
}
/*!
- Increments the forest's current tree index. If the current
- tree index is still within the forest, the function returns
- the root node of the current tree. Otherwise it returns \nullptr.
- */
-NamespaceNode *QDocForest::nextRoot()
-{
- ++m_currentIndex;
- return (m_currentIndex < searchOrder().size() ? searchOrder()[m_currentIndex]->root()
- : nullptr);
-}
-
-/*!
Initializes the forest prior to a traversal and
returns a pointer to the primary tree. If the
forest is empty, it returns \nullptr.
diff --git a/src/qdoc/qdocdatabase.h b/src/qdoc/qdocdatabase.h
index 65494f20f..02ab28e8f 100644
--- a/src/qdoc/qdocdatabase.h
+++ b/src/qdoc/qdocdatabase.h
@@ -39,7 +39,6 @@ private:
}
~QDocForest();
- NamespaceNode *nextRoot();
Tree *firstTree();
Tree *nextTree();
Tree *primaryTree() { return m_primaryTree; }
@@ -331,8 +330,6 @@ public:
void insertOpenNamespace(const QString &path) { m_openNamespaces.insert(path); }
void processForest();
- // Try to make this function private.
- QDocForest &forest() { return m_forest; }
NamespaceNode *primaryTreeRoot() { return m_forest.primaryTreeRoot(); }
void newPrimaryTree(const QString &module) { m_forest.newPrimaryTree(module); }
void setPrimaryTree(const QString &t) { m_forest.setPrimaryTree(t); }
@@ -353,11 +350,6 @@ public:
private:
friend class Tree;
- const Node *findNode(const QStringList &path, const Node *relative, int findFlags,
- Node::Genus genus)
- {
- return m_forest.findNode(path, relative, findFlags, genus);
- }
void processForest(FindFunctionPtr func);
bool isLoaded(const QString &t) { return m_forest.isLoaded(t); }
static void initializeDB();