summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpcollectionhandler.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2024-02-09 18:50:57 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2024-02-19 08:12:59 +0100
commite9dd6cdb35f170d53d9bfdbcfa39dd56096b6e11 (patch)
tree03cfdafb13aaea54cd81f129825bfc8bf89ced5d /src/assistant/help/qhelpcollectionhandler.cpp
parent4cb7c58ed02d3c47684fae6b49f87f10bc27ccc2 (diff)
QtHelp: Remove unused methods from QHelpCollectionHandler
Task-number: QTBUG-122025 Change-Id: Ie2470fcf4337ea5dd4cb26b29f7058beff0cc415 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/assistant/help/qhelpcollectionhandler.cpp')
-rw-r--r--src/assistant/help/qhelpcollectionhandler.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp
index ffe2a9acb..cc270f1b8 100644
--- a/src/assistant/help/qhelpcollectionhandler.cpp
+++ b/src/assistant/help/qhelpcollectionhandler.cpp
@@ -2223,18 +2223,6 @@ QUrl QHelpCollectionHandler::buildQUrl(const QString &ns, const QString &folder,
return url;
}
-QMultiMap<QString, QUrl> QHelpCollectionHandler::linksForIdentifier(
- const QString &id, const QStringList &filterAttributes) const
-{
- return linksForField(QLatin1String("Identifier"), id, filterAttributes);
-}
-
-QMultiMap<QString, QUrl> QHelpCollectionHandler::linksForKeyword(
- const QString &keyword, const QStringList &filterAttributes) const
-{
- return linksForField(QLatin1String("Name"), keyword, filterAttributes);
-}
-
QList<QHelpLink> QHelpCollectionHandler::documentsForIdentifier(
const QString &id, const QStringList &filterAttributes) const
{
@@ -2247,16 +2235,6 @@ QList<QHelpLink> QHelpCollectionHandler::documentsForKeyword(
return documentsForField("Name"_L1, keyword, filterAttributes);
}
-QMultiMap<QString, QUrl> QHelpCollectionHandler::linksForField(const QString &fieldName,
- const QString &fieldValue, const QStringList &filterAttributes) const
-{
- QMultiMap<QString, QUrl> linkMap;
- const auto documents = documentsForField(fieldName, fieldValue, filterAttributes);
- for (const auto &document : documents)
- linkMap.insert(document.title, document.url);
- return linkMap;
-}
-
QList<QHelpLink> QHelpCollectionHandler::documentsForField(const QString &fieldName,
const QString &fieldValue, const QStringList &filterAttributes) const
{
@@ -2305,18 +2283,6 @@ QList<QHelpLink> QHelpCollectionHandler::documentsForField(const QString &fieldN
return docList;
}
-QMultiMap<QString, QUrl> QHelpCollectionHandler::linksForIdentifier(
- const QString &id, const QString &filterName) const
-{
- return linksForField(QLatin1String("Identifier"), id, filterName);
-}
-
-QMultiMap<QString, QUrl> QHelpCollectionHandler::linksForKeyword(
- const QString &keyword, const QString &filterName) const
-{
- return linksForField(QLatin1String("Name"), keyword, filterName);
-}
-
QList<QHelpLink> QHelpCollectionHandler::documentsForIdentifier(
const QString &id, const QString &filterName) const
{