forked from qt-creator/qt-creator
Eliminate redundant isEmpty() methods.
Change-Id: I7cdde38a389e077875199a0b34c8b527691aa96e Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -70,11 +70,6 @@ int PixmapCacheModel::count() const
|
|||||||
return d->count();
|
return d->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PixmapCacheModel::isEmpty() const
|
|
||||||
{
|
|
||||||
return d->count() == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PixmapCacheModel::eventAccepted(const QmlProfilerSimpleModel::QmlEventData &event) const
|
bool PixmapCacheModel::eventAccepted(const QmlProfilerSimpleModel::QmlEventData &event) const
|
||||||
{
|
{
|
||||||
return (event.eventType == QmlDebug::PixmapCacheEvent);
|
return (event.eventType == QmlDebug::PixmapCacheEvent);
|
||||||
|
@@ -62,8 +62,6 @@ public:
|
|||||||
|
|
||||||
int count() const;
|
int count() const;
|
||||||
|
|
||||||
bool isEmpty() const;
|
|
||||||
|
|
||||||
bool eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const;
|
bool eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const;
|
||||||
|
|
||||||
Q_INVOKABLE qint64 lastTimeMark() const;
|
Q_INVOKABLE qint64 lastTimeMark() const;
|
||||||
|
@@ -78,11 +78,6 @@ int SceneGraphTimelineModel::count() const
|
|||||||
return d->count();
|
return d->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SceneGraphTimelineModel::isEmpty() const
|
|
||||||
{
|
|
||||||
return d->count() == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SceneGraphTimelineModel::eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const
|
bool SceneGraphTimelineModel::eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const
|
||||||
{
|
{
|
||||||
return (event.eventType == QmlDebug::SceneGraphFrameEvent);
|
return (event.eventType == QmlDebug::SceneGraphFrameEvent);
|
||||||
|
@@ -50,8 +50,6 @@ public:
|
|||||||
|
|
||||||
int count() const;
|
int count() const;
|
||||||
|
|
||||||
bool isEmpty() const;
|
|
||||||
|
|
||||||
bool eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const;
|
bool eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const;
|
||||||
|
|
||||||
Q_INVOKABLE qint64 lastTimeMark() const;
|
Q_INVOKABLE qint64 lastTimeMark() const;
|
||||||
|
Reference in New Issue
Block a user