summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-12 12:05:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-12 10:32:58 -0700
commita537894553698880f09957fe9b423b280d5df444 (patch)
tree1241e1d8d592260ee23c7885a460e9eb67a5dec3 /profile-widget/profilewidget2.cpp
parent9771c57a54d4f56aadb623b9203d4b7320067273 (diff)
downloadsubsurface-a537894553698880f09957fe9b423b280d5df444.tar.gz
profile: remove ProfileWidget2::replotEnabled
The last setter was removed in the previous commit. Let's remove this complexity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
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)
{