Unused code: GpsListModel::addGpsFix()

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-05-20 21:39:50 +02:00
parent 1892e2af21
commit 53221ffd8e
2 changed files with 0 additions and 8 deletions

View file

@ -10,13 +10,6 @@ GpsListModel::GpsListModel(QObject *parent) : QAbstractListModel(parent)
m_instance = this; m_instance = this;
} }
void GpsListModel::addGpsFix(gpsTracker g)
{
beginInsertColumns(QModelIndex(), rowCount(), rowCount());
m_gpsFixes.append(g);
endInsertRows();
}
void GpsListModel::update() void GpsListModel::update()
{ {
QVector<gpsTracker> trackers = QVector<gpsTracker>::fromList(GpsLocation::instance()->currentGPSInfo().values()); QVector<gpsTracker> trackers = QVector<gpsTracker>::fromList(GpsLocation::instance()->currentGPSInfo().values());

View file

@ -21,7 +21,6 @@ public:
static GpsListModel *instance(); static GpsListModel *instance();
GpsListModel(QObject *parent = 0); GpsListModel(QObject *parent = 0);
void addGpsFix(gpsTracker g);
void clear(); void clear();
int rowCount(const QModelIndex &parent = QModelIndex()) const; int rowCount(const QModelIndex &parent = QModelIndex()) const;
QHash<int, QByteArray> roleNames() const; QHash<int, QByteArray> roleNames() const;