From cc3ba13c987915613bf51b42cfb8eed4be069af1 Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Sun, 8 Dec 2024 21:40:51 +0100 Subject: [PATCH] Remove old config migration code --- .../protocoltranslator/ProtocolTranslator.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java b/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java index f82378f5..51bf195f 100644 --- a/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java +++ b/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java @@ -305,18 +305,6 @@ public class ProtocolTranslator { name.set(name.get() + " (Work in progress)"); } - @Deprecated/*(forRemoval = true)*/ - private static void migrateOldConfigs(final File directory) { - final File oldDirectory = new File(directory, "ViaLoader"); - if (oldDirectory.exists()) { - // Move all files from this folder into the directory itself - for (File file : oldDirectory.listFiles()) { - file.renameTo(new File(directory, file.getName())); - } - oldDirectory.delete(); - } - } - /** * This method is used to initialize the whole Protocol Translator * @@ -328,7 +316,6 @@ public class ProtocolTranslator { if (SharedConstants.getProtocolVersion() != NATIVE_VERSION.getOriginalVersion()) { throw new IllegalStateException("Native version is not the same as the current version"); } - migrateOldConfigs(directory); patchConfigs(directory); // Register command callback for /viafabricplus