From 5d1c30acbf9dc220728fa9c04603d45c75f3f3b2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 12 Oct 2018 09:01:04 +0200 Subject: Cleanup: remove unused function MainTab::showLocation() The last caller was removed way back in 266e754d08499a4ed45024d4886c4e799e7951e7. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 8 -------- desktop-widgets/tab-widgets/maintab.h | 1 - 2 files changed, 9 deletions(-) (limited to 'desktop-widgets') 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: -- cgit v1.2.3-70-g09d2