summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index d6a61b39c..12b025c3c 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1216,12 +1216,6 @@ void learnHash(const QString &originalName, const QString &localName, const QByt
hashOf[originalName] = hash;
}
-static bool haveHash(const QString &filename)
-{
- QMutexLocker locker(&hashOfMutex);
- return hashOf.contains(filename);
-}
-
QString localFilePath(const QString &originalFilename)
{
QMutexLocker locker(&hashOfMutex);
@@ -1241,13 +1235,6 @@ void hashPicture(QString filename)
mark_divelist_changed(true);
}
-extern "C" void cache_picture(struct picture *picture)
-{
- QString filename = picture->filename;
- if (!haveHash(filename))
- QtConcurrent::run(hashPicture, filename);
-}
-
QStringList imageExtensionFilters() {
QStringList filters;
foreach (QString format, QImageReader::supportedImageFormats()) {