Commit 5ceb0b68 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Remove lastTimeMark()



It's unused and there is no point in having it as you can retrieve the
time span from zoomControl

Change-Id: I474ecf4ee6c183ac8b97bbac9c47618f52d956c0
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 566ae344
......@@ -74,12 +74,6 @@ int AbstractTimelineModel::count() const
return d->count();
}
qint64 AbstractTimelineModel::lastTimeMark() const
{
Q_D(const AbstractTimelineModel);
return d->lastEndTime();
}
int AbstractTimelineModel::findFirstIndex(qint64 startTime) const
{
Q_D(const AbstractTimelineModel);
......
......@@ -59,7 +59,6 @@ public:
void setRowHeight(int rowNumber, int height);
int height() const;
Q_INVOKABLE qint64 lastTimeMark() const;
Q_INVOKABLE qint64 traceStartTime() const;
Q_INVOKABLE qint64 traceEndTime() const;
Q_INVOKABLE qint64 traceDuration() const;
......
......@@ -129,19 +129,6 @@ bool TimelineModelAggregator::eventAccepted(const QmlProfilerDataModel::QmlEvent
return true;
}
qint64 TimelineModelAggregator::lastTimeMark() const
{
qint64 mark = -1;
foreach (const AbstractTimelineModel *modelProxy, d->modelList) {
if (!modelProxy->isEmpty()) {
qint64 mk = modelProxy->lastTimeMark();
if (mark > mk)
mark = mk;
}
}
return mark;
}
int TimelineModelAggregator::height(int modelIndex) const
{
return d->modelList[modelIndex]->height();
......
......@@ -60,8 +60,6 @@ public:
bool eventAccepted(const QmlProfilerDataModel::QmlEventData &event) const;
Q_INVOKABLE qint64 lastTimeMark() const;
Q_INVOKABLE int height(int modelIndex) const;
Q_INVOKABLE int rowHeight(int modelIndex, int row) const;
Q_INVOKABLE void setRowHeight(int modelIndex, int row, int height);
......
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