summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport/exampleslistmodel.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-04-07 15:25:45 +0200
committerEike Ziller <eike.ziller@digia.com>2014-06-16 09:43:22 +0200
commit5223f0d8a2a0b4d54c2944d90ad998befaa670b2 (patch)
tree444433fc8bf9d976b40d5d1f36f2301f836efe11 /src/plugins/qtsupport/exampleslistmodel.cpp
parent7166f13aa8ec79e7610ffa02fcccb97d4aff33cd (diff)
downloadqt-creator-5223f0d8a2a0b4d54c2944d90ad998befaa670b2.tar.gz
Examples: Remove unused internal API
Change-Id: Iba3da7fb1d45630e0986a83ef004e5b9b08fb0c7 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qtsupport/exampleslistmodel.cpp')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index 20e978ca6a..b30e6b1cf6 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -341,7 +341,6 @@ void ExamplesListModel::parseExamples(QXmlStreamReader *reader,
item.dependencies.append(projectsOffset + slash + reader->readElementText(QXmlStreamReader::ErrorOnUnexpectedElement));
} else if (reader->name() == QLatin1String("tags")) {
item.tags = trimStringList(reader->readElementText(QXmlStreamReader::ErrorOnUnexpectedElement).split(QLatin1Char(','), QString::SkipEmptyParts));
- m_tags.append(item.tags);
} else if (reader->name() == QLatin1String("platforms")) {
item.platforms = trimStringList(reader->readElementText(QXmlStreamReader::ErrorOnUnexpectedElement).split(QLatin1Char(','), QString::SkipEmptyParts));
}
@@ -463,7 +462,6 @@ void ExamplesListModel::updateExamples()
QStringList sources = exampleSources(&examplesInstallPath, &demosInstallPath);
beginResetModel();
- m_tags.clear();
m_exampleItems.clear();
foreach (const QString &exampleSource, sources) {
@@ -500,10 +498,6 @@ void ExamplesListModel::updateExamples()
qWarning() << QString::fromLatin1("ERROR: Could not parse file as XML document (%1)").arg(exampleSource);
}
endResetModel();
-
- m_tags.sort();
- m_tags.erase(std::unique(m_tags.begin(), m_tags.end()), m_tags.end());
- emit tagsUpdated();
}
void ExamplesListModel::updateQtVersions()
@@ -702,12 +696,6 @@ QVariant ExamplesListModel::data(const QModelIndex &index, int role) const
}
}
-// TODO global tag list is unused, remove
-QStringList ExamplesListModel::tags() const
-{
- return m_tags;
-}
-
void ExamplesListModel::update()
{
updateQtVersions();