mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8758b95881
commit
bbbd4c8818
7 changed files with 7 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue