diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-28 02:20:13 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-30 07:40:36 -0700 |
commit | 58cdc67227b8b7d2b6509087b17c426a5dd5a0ca (patch) | |
tree | 83ca8519f42a40f9eb82bcb95e45c2ab606667d2 | |
parent | 02e76be96a35047621883443db67f272ba5c59c8 (diff) | |
download | subsurface-58cdc67227b8b7d2b6509087b17c426a5dd5a0ca.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | desktop-widgets/divelistview.cpp | 15 | ||||
-rw-r--r-- | desktop-widgets/divelistview.h | 1 |
2 files changed, 0 insertions, 16 deletions
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<void *>(); - 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<void *>(); - 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(); |