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 bb68afcbc..e543ad1c1 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1601,31 +1601,6 @@ char *intdup(int index)
return strdup(tmpbuf);
}
-QHash<int, double> factor_cache;
-
-QReadWriteLock factorCacheLock;
-extern "C" double cache_value(int tissue, int timestep, enum inertgas inertgas)
-{
- double value;
- int key = (timestep << 5) + (tissue << 1);
- if (inertgas == HE)
- ++key;
- factorCacheLock.lockForRead();
- value = factor_cache.value(key);
- factorCacheLock.unlock();
- return value;
-}
-
-extern "C" void cache_insert(int tissue, int timestep, enum inertgas inertgas, double value)
-{
- int key = (timestep << 5) + (tissue << 1);
- if (inertgas == HE)
- ++key;
- factorCacheLock.lockForWrite();
- factor_cache.insert(key, value);
- factorCacheLock.unlock();
-}
-
extern "C" void print_qt_versions()
{
printf("%s\n", qPrintable(QStringLiteral("built with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion())));