profile: remove ProfileWidget2::dateTimeChanged()

This function sent a signal and the only listener was removed
in the previous commit.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-12-20 12:00:57 +01:00 committed by Dirk Hohndel
parent ea88f4729d
commit 7819683990
3 changed files with 0 additions and 8 deletions

View file

@ -256,7 +256,6 @@ void MainTab::divesChanged(const QVector<dive *> &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)

View file

@ -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();

View file

@ -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();