diff options
-rw-r--r-- | qt-models/divelocationmodel.cpp | 14 | ||||
-rw-r--r-- | qt-models/divelocationmodel.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 37eadf9e2..774a9b2d7 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -131,20 +131,6 @@ void LocationInformationModel::update() endResetModel(); } -uint32_t LocationInformationModel::addDiveSite(const QString& name, timestamp_t divetime, int lon, int lat) -{ - degrees_t latitude, longitude; - latitude.udeg = lat; - longitude.udeg = lon; - - beginInsertRows(QModelIndex(), dive_site_table.nr + 2, dive_site_table.nr + 2); - uint32_t uuid = create_dive_site_with_gps(name.toUtf8().data(), latitude, longitude, divetime); - qSort(dive_site_table.dive_sites, dive_site_table.dive_sites + dive_site_table.nr, dive_site_less_than); - internalRowCount = dive_site_table.nr; - endInsertRows(); - return uuid; -} - bool LocationInformationModel::setData(const QModelIndex &index, const QVariant &value, int role) { if (!index.isValid() || index.row() < 2) diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h index 45ccb0203..0829abd30 100644 --- a/qt-models/divelocationmodel.h +++ b/qt-models/divelocationmodel.h @@ -23,7 +23,6 @@ public: int columnCount(const QModelIndex &parent) const; int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const; - uint32_t addDiveSite(const QString& name, timestamp_t divetime, int lat = 0, int lon = 0); bool setData(const QModelIndex &index, const QVariant &value, int role); bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); void setFirstRowTextField(QLineEdit *textField); |