[core] Remove all old configs (#1000)

This commit is contained in:
vvb2060 2021-08-25 12:07:51 +08:00 committed by GitHub
parent 7e85205b8b
commit b4a67a1f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -124,9 +124,12 @@ class ConfigFileManager {
}
// TODO: Remove after next release
@SuppressWarnings("ResultOfMethodCallIgnored")
static void migrateOldConfig(ConfigManager configManager) {
var miscPath = new File(basePath, "misc_path");
var enableResources = new File(configDirPath, "enable_resources");
var manager = new File(configDirPath, "manager");
var verboseLog = new File(configDirPath, "verbose_log");
if (miscPath.exists()) {
try {
@ -145,6 +148,8 @@ class ConfigFileManager {
} catch (IOException ignored) {
}
}
manager.delete();
verboseLog.delete();
}
static boolean tryLock() {