From 78196839903398434638073d26ee9b47da0a0e55 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 20 Dec 2020 12:00:57 +0100 Subject: profile: remove ProfileWidget2::dateTimeChanged() This function sent a signal and the only listener was removed in the previous commit. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 1 - profile-widget/profilewidget2.cpp | 5 ----- profile-widget/profilewidget2.h | 2 -- 3 files changed, 8 deletions(-) diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index ba0d2db55..9bcc36cff 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -256,7 +256,6 @@ void MainTab::divesChanged(const QVector &dives, DiveField field) updateNotes(current_dive); if (field.datetime) { updateDateTime(current_dive); - MainWindow::instance()->graphics->dateTimeChanged(); DivePlannerPointsModel::instance()->getDiveplan().when = current_dive->when; } if (field.divesite) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index ecb26fc4b..5e4924169 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -865,11 +865,6 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict #endif } -void ProfileWidget2::dateTimeChanged() -{ - emit dateTimeChangedItems(); -} - void ProfileWidget2::actionRequestedReplot(bool) { settingsChanged(); diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 4c6d66898..f077eb9e4 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -98,11 +98,9 @@ signals: void enableShortcuts(); void disableShortcuts(bool paste); void editCurrentDive(); - void dateTimeChangedItems(); public slots: // Necessary to call from QAction's signals. - void dateTimeChanged(); void settingsChanged(); void actionRequestedReplot(bool triggered); void setEmptyState(); -- cgit v1.2.3-70-g09d2