From f70e8c646472eb83db1ae6ee1b72aaf94fc83537 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 14 Feb 2014 13:36:22 +0100 Subject: [PATCH] Eliminate redundant isEmpty() methods. Change-Id: I7cdde38a389e077875199a0b34c8b527691aa96e Reviewed-by: Kai Koehne --- plugins/qmlprofilerextension/pixmapcachemodel.cpp | 5 ----- plugins/qmlprofilerextension/pixmapcachemodel.h | 2 -- plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp | 5 ----- plugins/qmlprofilerextension/scenegraphtimelinemodel.h | 2 -- 4 files changed, 14 deletions(-) diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp index e943150ddef..64efac43281 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp +++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp @@ -70,11 +70,6 @@ int PixmapCacheModel::count() const return d->count(); } -bool PixmapCacheModel::isEmpty() const -{ - return d->count() == 0; -} - bool PixmapCacheModel::eventAccepted(const QmlProfilerSimpleModel::QmlEventData &event) const { return (event.eventType == QmlDebug::PixmapCacheEvent); diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.h b/plugins/qmlprofilerextension/pixmapcachemodel.h index c2ef9aa1cdd..89d1d64e1e8 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.h +++ b/plugins/qmlprofilerextension/pixmapcachemodel.h @@ -62,8 +62,6 @@ public: int count() const; - bool isEmpty() const; - bool eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const; Q_INVOKABLE qint64 lastTimeMark() const; diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp index 2b2aabb7c4b..13519cbfcd1 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp @@ -78,11 +78,6 @@ int SceneGraphTimelineModel::count() const return d->count(); } -bool SceneGraphTimelineModel::isEmpty() const -{ - return d->count() == 0; -} - bool SceneGraphTimelineModel::eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const { return (event.eventType == QmlDebug::SceneGraphFrameEvent); diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h index 6f2da1bfc8e..cea5111bd0d 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h @@ -50,8 +50,6 @@ public: int count() const; - bool isEmpty() const; - bool eventAccepted(const QmlProfiler::QmlProfilerSimpleModel::QmlEventData &event) const; Q_INVOKABLE qint64 lastTimeMark() const;