summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-06-28 17:54:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-06-28 09:53:23 -0700
commit080834c6f228536562d6d0f9f332a8d2ad821cb5 (patch)
treec1fa7ffc284bc4541e98d2340928f6f0e6cc5f7f
parent248976bf11df2437aa4ceb437e79cb3a7fed27c4 (diff)
downloadsubsurface-080834c6f228536562d6d0f9f332a8d2ad821cb5.tar.gz
cleanup: remove dead code in ToolTipItem::refresh()
The code was downcasting the QGraphicsScene to ProfileWidget2, but then didn't use the result. *shrug* Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--profile-widget/divetooltipitem.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/profile-widget/divetooltipitem.cpp b/profile-widget/divetooltipitem.cpp
index a66d56c3c..4d8bd5a22 100644
--- a/profile-widget/divetooltipitem.cpp
+++ b/profile-widget/divetooltipitem.cpp
@@ -244,9 +244,6 @@ void ToolTipItem::refresh(const dive *d, const QPointF &pos, bool inPlanner)
painter.setBrush(QColor(Qt::red));
painter.drawRect(0,0,16,10);
if (idx) {
- ProfileWidget2 *view = qobject_cast<ProfileWidget2*>(scene()->views().first());
- Q_ASSERT(view);
-
const struct plot_data *entry = &pInfo.entry[idx];
painter.setPen(QColor(0, 0, 0, 255));
if (decoMode(inPlanner) == BUEHLMANN)