summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
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/mainwindow.cpp
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/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp7
1 files changed, 1 insertions, 6 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) {