From a9da44b402ad7f1d1665c4345345b5bc40e53fbd Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 18 Nov 2019 18:50:59 +0100 Subject: 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 --- desktop-widgets/mainwindow.cpp | 7 +------ desktop-widgets/mainwindow.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'desktop-widgets') 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(); -- cgit v1.2.3-70-g09d2