From ca7a2df121d59cd26d25b634d8ea46055c157b5e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 12 Jul 2021 23:16:49 +0200 Subject: [PATCH] profile: remove AbstractProfilePolygonItem::setVisible() This was just a stub to make the setVisible() function a "slot". Since there are no more signals using it, remove it. Signed-off-by: Berthold Stoeger --- profile-widget/diveprofileitem.cpp | 5 ----- profile-widget/diveprofileitem.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index bdd45c0c0..00e946346 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -26,11 +26,6 @@ void AbstractProfilePolygonItem::clear() texts.clear(); } -void AbstractProfilePolygonItem::setVisible(bool visible) -{ - QGraphicsPolygonItem::setVisible(visible); -} - void AbstractProfilePolygonItem::replot(const dive *, bool) { // Calculate the polygon. This is the polygon that will be painted on screen diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h index 8320fe86f..1ae016065 100644 --- a/profile-widget/diveprofileitem.h +++ b/profile-widget/diveprofileitem.h @@ -39,9 +39,6 @@ public: virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) = 0; void clear(); virtual void replot(const dive *d, bool in_planner); -public -slots: - void setVisible(bool visible); protected: const DiveCartesianAxis &hAxis;