diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-02-14 13:36:22 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-02-18 15:48:53 +0200 |
commit | f70e8c646472eb83db1ae6ee1b72aaf94fc83537 (patch) | |
tree | feb33b2667c80929d3d150f0fc8c9b28327ae528 | |
parent | ff75cbda0225e6d0e01c99be825418d1d2479b42 (diff) | |
download | qt-creator-f70e8c646472eb83db1ae6ee1b72aaf94fc83537.tar.gz |
Eliminate redundant isEmpty() methods.
Change-Id: I7cdde38a389e077875199a0b34c8b527691aa96e
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
4 files changed, 0 insertions, 14 deletions
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp index e943150dde..64efac4328 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 c2ef9aa1cd..89d1d64e1e 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 2b2aabb7c4..13519cbfcd 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 6f2da1bfc8..cea5111bd0 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; |