Remove dumb code

This commit is contained in:
tom5079
2022-01-31 13:28:31 +09:00
parent 792f5b5a7f
commit 2608796929

View File

@@ -229,11 +229,6 @@ class Cache private constructor(context: Context, val galleryID: Int) : ContextW
return@launch
(lock[galleryID] ?: Mutex().also { lock[galleryID] = it }).withLock {
if (downloadFolder.exists() && downloadFolder.list().isNullOrEmpty()) {
downloadFolder.deleteRecursively()
downloadFolder.mkdir()
}
val cacheMetadata = cacheFolder.getChild(".metadata")
val downloadMetadata = downloadFolder.getChild(".metadata")