diff options
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; |