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>
This commit is contained in:
Berthold Stoeger 2020-04-12 12:05:21 +02:00 committed by Dirk Hohndel
parent 9771c57a54
commit a537894553
2 changed files with 0 additions and 11 deletions

View file

@ -376,14 +376,10 @@ void ProfileWidget2::setupItemOnScene()
timeAxis->setLinesVisible(true); timeAxis->setLinesVisible(true);
profileYAxis->setLinesVisible(true); profileYAxis->setLinesVisible(true);
gasYAxis->setZValue(timeAxis->zValue() + 1); gasYAxis->setZValue(timeAxis->zValue() + 1);
replotEnabled = true;
} }
void ProfileWidget2::replot(struct dive *d) void ProfileWidget2::replot(struct dive *d)
{ {
if (!replotEnabled)
return;
dataModel->clear(); dataModel->clear();
plotDive(d, true, false); plotDive(d, true, false);
} }
@ -1402,11 +1398,6 @@ struct int ProfileWidget2::getEntryFromPos(QPointF pos)
} }
#endif #endif
void ProfileWidget2::setReplot(bool state)
{
replotEnabled = state;
}
#ifndef SUBSURFACE_MOBILE #ifndef SUBSURFACE_MOBILE
void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event) void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
{ {

View file

@ -108,7 +108,6 @@ slots: // Necessary to call from QAction's signals.
void actionRequestedReplot(bool triggered); void actionRequestedReplot(bool triggered);
void setEmptyState(); void setEmptyState();
void setProfileState(); void setProfileState();
void setReplot(bool state);
void replot(dive *d = 0); void replot(dive *d = 0);
#ifndef SUBSURFACE_MOBILE #ifndef SUBSURFACE_MOBILE
void plotPictures(); void plotPictures();
@ -185,7 +184,6 @@ private:
ToolTipItem *toolTipItem; ToolTipItem *toolTipItem;
#endif #endif
bool isPlotZoomed; bool isPlotZoomed;
bool replotEnabled;
// All those here should probably be merged into one structure, // All those here should probably be merged into one structure,
// So it's esyer to replicate for more dives later. // So it's esyer to replicate for more dives later.
// In the meantime, keep it here. // In the meantime, keep it here.