From 2657ec90168de07cdba087bf90938df5d89a86c1 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 2 Mar 2022 21:08:19 +0100 Subject: [PATCH] cleanup: remove MainWindow::refreshProfile() This only calls MainWindow::showProfile(), so simply call that directly. Moreover make two "public slots" private member functions, since these were only called locally. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 7 +------ desktop-widgets/mainwindow.h | 5 ++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 3ad2f09e7..0bfa5161a 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -627,16 +627,11 @@ bool MainWindow::plannerStateClean() return true; } -void MainWindow::refreshProfile() -{ - showProfile(); -} - void MainWindow::planCanceled() { // while planning we might have modified the displayed_dive // let's refresh what's shown on the profile - refreshProfile(); + showProfile(); refreshDisplay(); } diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 7cfd4a7ac..a21f061cd 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -151,9 +151,6 @@ signals: public slots: void readSettings(); - void refreshDisplay(); - void showProfile(); - void refreshProfile(); void planCanceled(); void planCreated(); // Some shortcuts like "change DC" or "copy/paste dive components" @@ -186,6 +183,8 @@ private: void showProgressBar(); void hideProgressBar(); void writeSettings(); + void refreshDisplay(); + void showProfile(); int file_save(); int file_save_as(); void saveSplitterSizes();