From 71389cfa928b22216dc4753f86827f6bc05a1bd2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 14 Nov 2020 18:05:21 +0100 Subject: [PATCH] cleanup: remove empty function MainTab::reload() This used to reload the completion models. Moreover, remove two obsolete member-function declarations. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 2 -- desktop-widgets/tab-widgets/maintab.cpp | 4 ---- desktop-widgets/tab-widgets/maintab.h | 3 --- 3 files changed, 9 deletions(-) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index c2c3f63dd..b9ee3a15a 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -406,8 +406,6 @@ MainWindow *MainWindow::instance() // This gets called after one or more dives were added, edited or downloaded for a dive computer void MainWindow::refreshDisplay() { - mainTab->reload(); - setApplicationState(ApplicationState::Default); diveList->setEnabled(true); diveList->setFocus(); diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index f519d6a0b..386fa454e 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -491,10 +491,6 @@ void MainTab::updateDiveInfo() qDebug() << "Set the current dive site:" << current_dive->dive_site->uuid; } -void MainTab::reload() -{ -} - void MainTab::refreshDisplayedDiveSite() { ui.location->setCurrentDiveSite(current_dive); diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index 5ec4e6096..4227c9cb0 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -25,10 +25,7 @@ class MainTab : public QTabWidget { public: MainTab(QWidget *parent = 0); void clearTabs(); - void reload(); - void initialUiSetup(); bool isEditing(); - void updateCoordinatesText(qreal lat, qreal lon); void refreshDisplayedDiveSite(); void nextInputField(QKeyEvent *event); void stealFocus();