summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-31 23:40:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-06 11:48:47 -0700
commit406e83ac3004dc0f63b3f2e81d91067276248277 (patch)
tree764ef1e205e2aa599e40987f4f44a4e32111662b /qt-models/maplocationmodel.cpp
parentb9c35e21eafc347eba073ba8deb91b7052dbfbae (diff)
downloadsubsurface-406e83ac3004dc0f63b3f2e81d91067276248277.tar.gz
Cleanup: remove MapLocationModel::count() and the attribute count
These were not used anywhere and the function was redundant [same result as rowCount()]. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/maplocationmodel.cpp')
-rw-r--r--qt-models/maplocationmodel.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp
index e5d7fa2d5..922b29ac0 100644
--- a/qt-models/maplocationmodel.cpp
+++ b/qt-models/maplocationmodel.cpp
@@ -116,11 +116,6 @@ int MapLocationModel::rowCount(const QModelIndex&) const
return m_mapLocations.size();
}
-int MapLocationModel::count()
-{
- return m_mapLocations.size();
-}
-
void MapLocationModel::add(MapLocation *location)
{
beginInsertRows(QModelIndex(), m_mapLocations.size(), m_mapLocations.size());