Skip to content

Commit 23c2e77

Browse files
committed
remove v2.0.0-v2.0.1 migration support
1 parent 60c32fe commit 23c2e77

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

app/src/main/kotlin/com/spoiligaming/explorer/StartupAppDataMigration.kt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package com.spoiligaming.explorer
2020

2121
import com.spoiligaming.explorer.settings.util.AppStoragePaths
22-
import com.spoiligaming.explorer.util.FirstRunManager
2322
import java.io.File
2423
import java.nio.file.Files
2524
import java.nio.file.StandardCopyOption
@@ -43,35 +42,6 @@ internal object StartupAppDataMigration {
4342

4443
val specs =
4544
listOf(
46-
MigrationSpec(
47-
name = "LegacyLocalConfigJsonToPlatformSettings",
48-
sourceDir = AppStoragePaths.legacyConfigDir,
49-
targetDir = AppStoragePaths.platformSettingsDir,
50-
sourceFilter = { it.isFile && it.extension.equals("json", ignoreCase = true) },
51-
deleteSourceDirectoryWhenFinished = false,
52-
),
53-
MigrationSpec(
54-
name = "LegacyLocalConfigMarkerToPlatformConfigRoot",
55-
sourceDir = AppStoragePaths.legacyConfigDir,
56-
targetDir = AppStoragePaths.platformConfigRootDir,
57-
sourceFilter = { it.isFile && it.name.equals(FirstRunManager.MARKER_NAME, ignoreCase = true) },
58-
deleteSourceDirectoryWhenFinished = false,
59-
),
60-
MigrationSpec(
61-
name = "LegacyLocalConfigRemainderToPlatformConfigRoot",
62-
sourceDir = AppStoragePaths.legacyConfigDir,
63-
targetDir = AppStoragePaths.platformConfigRootDir,
64-
sourceFilter = {
65-
it.isFile &&
66-
!it.extension.equals("json", ignoreCase = true) &&
67-
!it.name.equals(FirstRunManager.MARKER_NAME, ignoreCase = true)
68-
},
69-
),
70-
MigrationSpec(
71-
name = "LegacyLocalLogsToPlatformLogs",
72-
sourceDir = AppStoragePaths.legacyLogsDir,
73-
targetDir = AppStoragePaths.platformLogsDir,
74-
),
7545
MigrationSpec(
7646
name = "LegacyNamedPlatformConfigRootToPreferredConfigRoot",
7747
sourceDir = AppStoragePaths.legacyNamedPlatformConfigRootDir,

0 commit comments

Comments
 (0)