From 5253dfeacff7f639a6e9674a70ae95b2160adc1a Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 27 Apr 2016 09:50:24 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 6 +----- src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index 79d1c6ebb2f..743a2b72fff 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -44,13 +44,9 @@ namespace QmlProfiler { class QmlProfilerStatisticsModel::QmlProfilerStatisticsModelPrivate { public: - QmlProfilerStatisticsModelPrivate(QmlProfilerStatisticsModel *qq) : q(qq) {} - ~QmlProfilerStatisticsModelPrivate() {} - QHash 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, diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h index 8f5e32e4171..9ac8fe3e81f 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h @@ -112,7 +112,6 @@ public: void clear(); const QmlStatisticsRelativesMap &getData(int typeId) const; - QVariantList getNotes(int typeId) const; const QVector &getTypes() const; protected: