aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-26 22:48:39 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-26 23:37:01 +0100
commitd1545b27b45db1b06cad56eb366757208dfa120b (patch)
treef55e3febdb92d049ff426de600a8b77621e02c9f /qt-models/divelocationmodel.cpp
parenta7d71ea167c8495613e64f878d1eedde6b547ba4 (diff)
downloadsubsurface-d1545b27b45db1b06cad56eb366757208dfa120b.tar.gz
Remove unused method LocationInformationModel::addDiveSite()
The call to this method was removed in commit f4c31f110fc98eb6d5d18c806e6b0f2ccc762d54 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r--qt-models/divelocationmodel.cpp14
1 files changed, 0 insertions, 14 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)