From 5e2dfd546e1bef5e54bd8fef2e06b1e58f5c176e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 2 Feb 2019 16:53:26 +0100 Subject: Cleanup: remove unused function MainTab::setCurrentLocationIndex The last caller was removed in ce8199cdfdef97437ad85178c7104f307baf018b. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 11 ----------- desktop-widgets/tab-widgets/maintab.h | 1 - 2 files changed, 12 deletions(-) diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 4bc7006bf..7882573ba 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -220,17 +220,6 @@ MainTab::~MainTab() } } -void MainTab::setCurrentLocationIndex() -{ - if (current_dive) { - struct dive_site *ds = current_dive->dive_site; - if (ds) - ui.location->setCurrentDiveSite(ds); - else - ui.location->clear(); - } -} - void MainTab::toggleTriggeredColumn() { QAction *action = qobject_cast(sender()); diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index fd46c318c..094f3d053 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 setCurrentLocationIndex(); EditMode getEditMode() const; private: Ui::MainTab ui; -- cgit v1.2.3-70-g09d2