diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-05-20 21:39:50 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-10 16:45:42 +0100 |
commit | 53221ffd8e5f70ef82b6cd01d54a51a5bf194c8d (patch) | |
tree | ad122f017eab5b1c6fab8169d0153337c2a47f5a /qt-models | |
parent | 1892e2af21dea4fd25e3ab4113c47888e7d5d466 (diff) | |
download | subsurface-53221ffd8e5f70ef82b6cd01d54a51a5bf194c8d.tar.gz |
Unused code: GpsListModel::addGpsFix()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/gpslistmodel.cpp | 7 | ||||
-rw-r--r-- | qt-models/gpslistmodel.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/qt-models/gpslistmodel.cpp b/qt-models/gpslistmodel.cpp index 429993d42..ee7867314 100644 --- a/qt-models/gpslistmodel.cpp +++ b/qt-models/gpslistmodel.cpp @@ -10,13 +10,6 @@ GpsListModel::GpsListModel(QObject *parent) : QAbstractListModel(parent) m_instance = this; } -void GpsListModel::addGpsFix(gpsTracker g) -{ - beginInsertColumns(QModelIndex(), rowCount(), rowCount()); - m_gpsFixes.append(g); - endInsertRows(); -} - void GpsListModel::update() { QVector<gpsTracker> trackers = QVector<gpsTracker>::fromList(GpsLocation::instance()->currentGPSInfo().values()); diff --git a/qt-models/gpslistmodel.h b/qt-models/gpslistmodel.h index 2ccf04699..a1c82e5d6 100644 --- a/qt-models/gpslistmodel.h +++ b/qt-models/gpslistmodel.h @@ -21,7 +21,6 @@ public: static GpsListModel *instance(); GpsListModel(QObject *parent = 0); - void addGpsFix(gpsTracker g); void clear(); int rowCount(const QModelIndex &parent = QModelIndex()) const; QHash<int, QByteArray> roleNames() const; |