summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 8fbd00b49..3a8ab4d54 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -376,14 +376,10 @@ void ProfileWidget2::setupItemOnScene()
timeAxis->setLinesVisible(true);
profileYAxis->setLinesVisible(true);
gasYAxis->setZValue(timeAxis->zValue() + 1);
-
- replotEnabled = true;
}
void ProfileWidget2::replot(struct dive *d)
{
- if (!replotEnabled)
- return;
dataModel->clear();
plotDive(d, true, false);
}
@@ -1402,11 +1398,6 @@ struct int ProfileWidget2::getEntryFromPos(QPointF pos)
}
#endif
-void ProfileWidget2::setReplot(bool state)
-{
- replotEnabled = state;
-}
-
#ifndef SUBSURFACE_MOBILE
void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
{