QmlProfiler: remove unused members from statistics relatives model

We never use the q pointer and we only show notes in the main model.

Change-Id: I635a97f8d878ba12b9ae55e2b758d1651d5e3aae
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-04-27 09:50:24 +02:00
parent e5a38bacc4
commit 5253dfeacf
2 changed files with 1 additions and 6 deletions

View File

@@ -44,13 +44,9 @@ namespace QmlProfiler {
class QmlProfilerStatisticsModel::QmlProfilerStatisticsModelPrivate
{
public:
QmlProfilerStatisticsModelPrivate(QmlProfilerStatisticsModel *qq) : q(qq) {}
~QmlProfilerStatisticsModelPrivate() {}
QHash<int, QmlProfilerStatisticsModel::QmlEventStats> data;
QmlProfilerModelManager *modelManager;
QmlProfilerStatisticsModel *q;
int modelId;
@@ -61,7 +57,7 @@ public:
QmlProfilerStatisticsModel::QmlProfilerStatisticsModel(QmlProfilerModelManager *modelManager,
QObject *parent) :
QObject(parent), d(new QmlProfilerStatisticsModelPrivate(this))
QObject(parent), d(new QmlProfilerStatisticsModelPrivate)
{
d->modelManager = modelManager;
connect(modelManager->qmlModel(), &QmlProfilerDataModel::changed,

View File

@@ -112,7 +112,6 @@ public:
void clear();
const QmlStatisticsRelativesMap &getData(int typeId) const;
QVariantList getNotes(int typeId) const;
const QVector<QmlProfilerDataModel::QmlEventTypeData> &getTypes() const;
protected: