Examples: Remove unused internal API

Change-Id: Iba3da7fb1d45630e0986a83ef004e5b9b08fb0c7
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2014-04-07 15:25:45 +02:00
parent 7166f13aa8
commit 5223f0d8a2
4 changed files with 0 additions and 33 deletions

View File

@@ -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();