diff --git a/src/app/utilsadapter.cpp b/src/app/utilsadapter.cpp index 5926ae00cc23e78159fd707b7155ab3d3fb040d8..4704f7308c0491e00781e95a15cf87831fd4c75e 100644 --- a/src/app/utilsadapter.cpp +++ b/src/app/utilsadapter.cpp @@ -154,18 +154,7 @@ UtilsAdapter::getLocalDataPath() const QString UtilsAdapter::getCachePath() { - const auto cacheDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); - - // Remove old mistaken cache dir. - // NOTE: this can be removed once we give a chance for users to upgrade. - QDir oldCacheDir(cacheDir); - oldCacheDir.cdUp(); - oldCacheDir.setPath(oldCacheDir.absolutePath() + "/jami"); - if (oldCacheDir.exists()) { - oldCacheDir.removeRecursively(); - } - - return cacheDir; + return QStandardPaths::writableLocation(QStandardPaths::CacheLocation); } QString