mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
958032b21c
commit
a9da44b402
2 changed files with 1 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -163,7 +163,6 @@ slots:
|
|||
void turnOffNdlTts();
|
||||
void readSettings();
|
||||
void refreshDisplay(bool doRecreateDiveList = true);
|
||||
void recreateDiveList();
|
||||
void showProfile();
|
||||
void refreshProfile();
|
||||
void editCurrentDive();
|
||||
|
|
Loading…
Reference in a new issue