diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-02-07 00:16:37 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-02-09 08:47:14 +0000 |
commit | e4cfd64ed2458c45fe13e5fed611952632d69156 (patch) | |
tree | 99665853b76174b0370ff6c12b9d0824ecf4156c /src/qml/util | |
parent | b7e7528f78ffa97d68669a171f8d6696ad5e35f3 (diff) |
QQmlAdaptorModel::Accessors: remove unused function 'count()'
QQmlAdaptorModel now uses rowCount() and columnCount() instead
of count(). So this function is no longer needed.
Change-Id: I4e72be756b82f1a250f325cb9533144c15098d1d
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/qml/util')
-rw-r--r-- | src/qml/util/qqmladaptormodel.cpp | 15 | ||||
-rw-r--r-- | src/qml/util/qqmladaptormodel_p.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/qml/util/qqmladaptormodel.cpp b/src/qml/util/qqmladaptormodel.cpp index 680785420f..d3167d24f3 100644 --- a/src/qml/util/qqmladaptormodel.cpp +++ b/src/qml/util/qqmladaptormodel.cpp @@ -453,11 +453,6 @@ public: { } - int count(const QQmlAdaptorModel &model) const override - { - return model.aim()->rowCount(model.rootIndex); - } - int rowCount(const QQmlAdaptorModel &model) const override { return model.aim()->rowCount(model.rootIndex); @@ -663,11 +658,6 @@ class VDMListDelegateDataType : public QQmlAdaptorModel::Accessors public: inline VDMListDelegateDataType() {} - int count(const QQmlAdaptorModel &model) const override - { - return model.list.count(); - } - int rowCount(const QQmlAdaptorModel &model) const override { return model.list.count(); @@ -757,11 +747,6 @@ public: free(metaObject); } - int count(const QQmlAdaptorModel &model) const override - { - return model.list.count(); - } - int rowCount(const QQmlAdaptorModel &model) const override { return model.list.count(); diff --git a/src/qml/util/qqmladaptormodel_p.h b/src/qml/util/qqmladaptormodel_p.h index 480aa50459..75edcfd2ed 100644 --- a/src/qml/util/qqmladaptormodel_p.h +++ b/src/qml/util/qqmladaptormodel_p.h @@ -74,7 +74,6 @@ public: public: inline Accessors() {} virtual ~Accessors(); - virtual int count(const QQmlAdaptorModel &) const { return 0; } virtual int rowCount(const QQmlAdaptorModel &) const { return 0; } virtual int columnCount(const QQmlAdaptorModel &) const { return 0; } virtual void cleanup(QQmlAdaptorModel &, QQmlDelegateModel * = 0) const {} |