diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-28 14:30:57 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-29 08:34:09 -0800 |
commit | bbbd4c88180d43604c5e6bbe093461e93859d706 (patch) | |
tree | cde7817eb765b94e02c3883347a04770143f7688 /core/qthelper.cpp | |
parent | 8758b95881ac65c95a1dcd1c6b419e538b38fbf0 (diff) | |
download | subsurface-bbbd4c88180d43604c5e6bbe093461e93859d706.tar.gz |
cleanup: remove getDivesInTrip() in qthelper.cpp
This function was not used anywhere. Moreover, remove a few
unused includes from qthelper.h. Surprisingly, a number of users
of qthelper.h depend on these, so readd them at the appropriate
places.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 2e74c5625..4db43458b 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -290,19 +290,6 @@ bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_te } #endif -QList<int> getDivesInTrip(dive_trip_t *trip) -{ - QList<int> ret; - int i; - struct dive *d; - for_each_dive (i, d) { - if (d->divetrip == trip) { - ret.push_back(get_divenr(d)); - } - } - return ret; -} - static xmlDocPtr get_stylesheet_doc(const xmlChar *uri, xmlDictPtr, int, void *, xsltLoadType) { QFile f(QLatin1String(":/xslt/") + (const char *)uri); |