diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-06-28 17:54:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-06-28 09:53:23 -0700 |
commit | 080834c6f228536562d6d0f9f332a8d2ad821cb5 (patch) | |
tree | c1fa7ffc284bc4541e98d2340928f6f0e6cc5f7f | |
parent | 248976bf11df2437aa4ceb437e79cb3a7fed27c4 (diff) | |
download | subsurface-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.cpp | 3 |
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) |