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>
This commit is contained in:
Berthold Stoeger 2019-11-18 18:50:59 +01:00 committed by Dirk Hohndel
parent 958032b21c
commit a9da44b402
2 changed files with 1 additions and 7 deletions

View file

@ -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) {

View file

@ -163,7 +163,6 @@ slots:
void turnOffNdlTts();
void readSettings();
void refreshDisplay(bool doRecreateDiveList = true);
void recreateDiveList();
void showProfile();
void refreshProfile();
void editCurrentDive();