forked from qt-creator/qt-creator
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: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user