summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-18 18:50:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-19 21:13:40 -0800
commita9da44b402ad7f1d1665c4345345b5bc40e53fbd (patch)
tree951b247ebecce9428f4b309e9267c1517a0b3120 /desktop-widgets
parent958032b21cb5c81b8f8bdbbccb77a3ccfbcc5d69 (diff)
downloadsubsurface-a9da44b402ad7f1d1665c4345345b5bc40e53fbd.tar.gz
Cleanup: remove MainWindow::recreateDiveList() function
The function had only one line and had only one caller. We might just as well fold that line into the caller. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp7
-rw-r--r--desktop-widgets/mainwindow.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index b563736f0..b8baac371 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -408,7 +408,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
mainTab->reload();
TankInfoModel::instance()->update();
if (doRecreateDiveList)
- recreateDiveList();
+ diveList->reload();
MapWidget::instance()->reload();
setApplicationState(ApplicationState::Default);
@@ -418,11 +418,6 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
ui.actionAutoGroup->setChecked(autogroup);
}
-void MainWindow::recreateDiveList()
-{
- diveList->reload();
-}
-
void MainWindow::configureToolbar()
{
if (current_dive) {
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index 075999707..109ca0e0c 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -163,7 +163,6 @@ slots:
void turnOffNdlTts();
void readSettings();
void refreshDisplay(bool doRecreateDiveList = true);
- void recreateDiveList();
void showProfile();
void refreshProfile();
void editCurrentDive();