Commit 19652d7b authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Remove dead code.

Change-Id: Ib44094740e93f1389c3caa07371866714a375f04
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent d8090373
......@@ -341,8 +341,6 @@ QmlProfilerEventsMainView::QmlProfilerEventsMainView(QWidget *parent,
d->modelProxy = modelProxy;
connect(d->modelProxy,SIGNAL(dataAvailable()), this, SLOT(buildModel()));
// connect(d->modelProxy,SIGNAL(stateChanged()),
// this,SLOT(profilerDataModelStateChanged()));
d->m_firstNumericColumn = 0;
d->m_preventSelectBounce = false;
d->m_showExtendedStatistics = false;
......@@ -366,7 +364,6 @@ QmlProfilerEventsMainView::QmlProfilerEventsMainView(QWidget *parent,
QmlProfilerEventsMainView::~QmlProfilerEventsMainView()
{
clear();
//delete d->modelProxy;
delete d->m_model;
delete d;
}
......@@ -808,7 +805,6 @@ void QmlProfilerEventRelativesView::rebuildTree(QmlProfilerEventRelativesModelPr
QStandardItem *topLevelItem = treeModel()->invisibleRootItem();
//foreach (const QmlProfilerEventParentsModelProxy::QmlEventParentData &event, eventMap.values()) {
foreach (const QString &key, eventMap.keys()) {
const QmlProfilerEventRelativesModelProxy::QmlEventRelativesData &event = eventMap[key];
QList<QStandardItem *> newRow;
......@@ -822,11 +818,6 @@ void QmlProfilerEventRelativesView::rebuildTree(QmlProfilerEventRelativesModelPr
newRow << new EventsViewItem(QString::number(event.calls));
newRow << new EventsViewItem(event.details);
// newRow << new EventsViewItem(event->reference->displayName);
// newRow << new EventsViewItem(QmlProfilerEventsMainView::nameForType(event->reference->eventType));
// newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(event->duration));
// newRow << new EventsViewItem(QString::number(event->calls));
// newRow << new EventsViewItem(event->reference->details);
newRow.at(0)->setData(QVariant(key), EventHashStrRole);
newRow.at(2)->setData(QVariant(event.duration));
newRow.at(3)->setData(QVariant(event.calls));
......
......@@ -118,7 +118,6 @@ public:
static QString nameForType(int typeNumber);
void getStatisticsInRange(qint64 rangeStart, qint64 rangeEnd);
// int selectedEventId() const;
QString selectedEventHash() const;
void setShowExtendedStatistics(bool);
......@@ -170,7 +169,6 @@ private:
void rebuildTree(QmlProfilerEventParentsModelProxy::QmlEventRelativesMap eventMap);
void updateHeader();
QStandardItemModel *treeModel();
// QmlProfilerModelManager *m_profilerModelManager;
class QmlProfilerEventParentsViewPrivate;
QmlProfilerEventParentsViewPrivate *d;
......
......@@ -161,7 +161,6 @@ QmlProfilerModelManager::QmlProfilerModelManager(Utils::FileInProjectFinder *fin
d->totalWeight = 0;
d->model = new QmlProfilerDataModel(finder, this);
d->v8Model = new QV8ProfilerDataModel(finder, this);
// d->model = new QmlProfilerSimpleModel(this);
d->dataState = new QmlProfilerDataState(this, this);
d->traceTime = new QmlProfilerTraceTime(this);
}
......
......@@ -225,7 +225,6 @@ const QVariantList PaintEventsModelProxy::getEventDetails(int index) const
{
Q_D(const PaintEventsModelProxy);
QVariantList result;
// int eventId = getEventId(index);
static const char trContext[] = "RangeDetails";
{
......
......@@ -50,8 +50,6 @@ namespace Internal {
class PaintEventsModelProxy : public SingleCategoryTimelineModel
{
// Q_PROPERTY(bool empty READ isEmpty NOTIFY emptyChanged)
Q_OBJECT
public:
......
......@@ -242,16 +242,6 @@ void QmlProfilerStateWidget::updateDisplay()
return;
}
// Everything empty (base state), commented out now but needed in the future.
// if (d->emptyList && d->loadingDone) {
// setVisible(true);
// d->progressBar->setVisible(false);
// d->text->setText(tr("Profiler ready"));
// resize(200,70);
// parentResized();
// return;
// }
// There is a trace on view, hide this dialog
d->progressBar->setVisible(false);
setVisible(false);
......
......@@ -35,14 +35,10 @@
#include "abstracttimelinemodel.h"
#include <qmldebug/qmlprofilereventtypes.h>
#include <qmldebug/qmlprofilereventlocation.h>
//#include <QHash>
//#include <QVector>
#include <QVariantList>
//#include <QVariantMap>
#include "qmlprofilerdatamodel.h"
#include <QColor>
namespace QmlProfiler {
class QmlProfilerModelManager;
......@@ -50,8 +46,6 @@ namespace Internal {
class BasicTimelineModel : public AbstractTimelineModel
{
// Q_PROPERTY(bool empty READ isEmpty NOTIFY emptyChanged)
Q_OBJECT
public:
struct QmlRangeEventData
......
......@@ -189,9 +189,6 @@ void QmlProfilerFileReader::loadEventData(QXmlStreamReader &stream)
QTC_ASSERT(stream.name() == _("eventData"), return);
QXmlStreamAttributes attributes = stream.attributes();
if (attributes.hasAttribute(_("totalTime"))) {
// not used any more
}
int eventIndex = -1;
QmlEvent event = {
......
......@@ -174,8 +174,6 @@ bool TimelineModelAggregator::expanded(int modelIndex, int category) const
void TimelineModelAggregator::setExpanded(int modelIndex, int category, bool expanded)
{
// int modelIndex = modelIndexForCategory(category);
// category = correctedCategoryIndexForModel(modelIndex, categoryIndex);
d->modelList[modelIndex]->setExpanded(category, expanded);
}
......@@ -196,8 +194,6 @@ int TimelineModelAggregator::rowCount(int modelIndex) const
const QString TimelineModelAggregator::categoryLabel(int modelIndex, int categoryIndex) const
{
// int modelIndex = modelIndexForCategory(categoryIndex);
// categoryIndex = correctedCategoryIndexForModel(modelIndex, categoryIndex);
return d->modelList[modelIndex]->categoryLabel(categoryIndex);
}
......@@ -299,8 +295,6 @@ float TimelineModelAggregator::getHeight(int modelIndex, int index) const
const QVariantList TimelineModelAggregator::getLabelsForCategory(int modelIndex, int category) const
{
// int modelIndex = modelIndexForCategory(category);
// category = correctedCategoryIndexForModel(modelIndex, category);
return d->modelList[modelIndex]->getLabelsForCategory(category);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment