From 53221ffd8e5f70ef82b6cd01d54a51a5bf194c8d Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sat, 20 May 2017 21:39:50 +0200 Subject: Unused code: GpsListModel::addGpsFix() Signed-off-by: Jan Mulder --- qt-models/gpslistmodel.cpp | 7 ------- qt-models/gpslistmodel.h | 1 - 2 files changed, 8 deletions(-) (limited to 'qt-models') 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 trackers = QVector::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 roleNames() const; -- cgit v1.2.3-70-g09d2