summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-12 09:01:04 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-10-12 13:05:35 +0200
commit5d1c30acbf9dc220728fa9c04603d45c75f3f3b2 (patch)
tree6b0c5f05c85c8209d4dacffb57d7d07e3e1e8323
parent1f76460dfa46e09e84830430ce3f873ba4f66ff9 (diff)
downloadsubsurface-5d1c30acbf9dc220728fa9c04603d45c75f3f3b2.tar.gz
Cleanup: remove unused function MainTab::showLocation()
The last caller was removed way back in 266e754d08499a4ed45024d4886c4e799e7951e7. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp8
-rw-r--r--desktop-widgets/tab-widgets/maintab.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index d4c867bfd..31f7f3ff3 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -369,14 +369,6 @@ bool MainTab::isEditing()
return editMode != NONE;
}
-void MainTab::showLocation()
-{
- if (get_dive_site_by_uuid(displayed_dive.dive_site_uuid))
- ui.location->setCurrentDiveSiteUuid(displayed_dive.dive_site_uuid);
- else
- ui.location->clear();
-}
-
void MainTab::updateDepthDuration()
{
ui.depth->setVisible(true);
diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h
index d644be4e3..f4a5ea105 100644
--- a/desktop-widgets/tab-widgets/maintab.h
+++ b/desktop-widgets/tab-widgets/maintab.h
@@ -97,7 +97,6 @@ slots:
void toggleTriggeredColumn();
void updateTextLabels(bool showUnits = true);
void escDetected(void);
- void showLocation();
void setCurrentLocationIndex();
EditMode getEditMode() const;
private: