From 080834c6f228536562d6d0f9f332a8d2ad821cb5 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 28 Jun 2021 17:54:09 +0200 Subject: 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 --- profile-widget/divetooltipitem.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'profile-widget') 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(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) -- cgit v1.2.3-70-g09d2