summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 6ee0cb6ae..fd9a8212b 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -288,31 +288,6 @@ QList<int> getDivesInTrip(dive_trip_t *trip)
return ret;
}
-// we need this to be uniq, but also make sure
-// it doesn't change during the life time of a Subsurface session
-// oh, and it has no meaning whatsoever - that's why we have the
-// silly initial number and increment by 3 :-)
-int dive_getUniqID(struct dive *d)
-{
- static QSet<int> ids;
- static int maxId = 83529;
-
- int id = d->id;
- if (id) {
- if (!ids.contains(id)) {
- qDebug() << "WTF - only I am allowed to create IDs";
- ids.insert(id);
- }
- return id;
- }
- maxId += 3;
- id = maxId;
- Q_ASSERT(!ids.contains(id));
- ids.insert(id);
- return id;
-}
-
-
static xmlDocPtr get_stylesheet_doc(const xmlChar *uri, xmlDictPtr, int, void *, xsltLoadType)
{
QFile f(QLatin1String(":/xslt/") + (const char *)uri);