From 58cdc67227b8b7d2b6509087b17c426a5dd5a0ca Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 28 Jul 2018 02:20:13 +0200 Subject: Cleanup: remove DiveListView::testSlot() This debugging-slot was not linked anywhere. And especially in the light of the impending refactoring of DiveListView/DiveTreeModel it seems pointless to keep old debugging code. Signed-off-by: Berthold Stoeger --- desktop-widgets/divelistview.cpp | 15 --------------- desktop-widgets/divelistview.h | 1 - 2 files changed, 16 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index a6a570127..8795eeea8 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -790,21 +790,6 @@ void DiveListView::deleteDive() fixMessyQtModelBehaviour(); } -void DiveListView::testSlot() -{ - struct dive *d = (struct dive *)contextMenuIndex.data(DiveTripModel::DIVE_ROLE).value(); - if (d) { - qDebug("testSlot called on dive #%d", d->number); - } else { - QModelIndex child = contextMenuIndex.child(0, 0); - d = (struct dive *)child.data(DiveTripModel::DIVE_ROLE).value(); - if (d) - qDebug("testSlot called on trip including dive #%d", d->number); - else - qDebug("testSlot called on trip with no dive"); - } -} - void DiveListView::contextMenuEvent(QContextMenuEvent *event) { QAction *collapseAction = NULL; diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h index eaabe5c8d..1fe0e803d 100644 --- a/desktop-widgets/divelistview.h +++ b/desktop-widgets/divelistview.h @@ -45,7 +45,6 @@ slots: void removeFromTrip(); void deleteDive(); void markDiveInvalid(); - void testSlot(); void fixMessyQtModelBehaviour(); void mergeTripAbove(); void mergeTripBelow(); -- cgit v1.2.3-70-g09d2