Skip to content

Commit cc3ba13

Browse files
Remove old config migration code
1 parent ca0e52e commit cc3ba13

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,6 @@ private static void changeBedrockProtocolName() {
305305
name.set(name.get() + " (Work in progress)");
306306
}
307307

308-
@Deprecated/*(forRemoval = true)*/
309-
private static void migrateOldConfigs(final File directory) {
310-
final File oldDirectory = new File(directory, "ViaLoader");
311-
if (oldDirectory.exists()) {
312-
// Move all files from this folder into the directory itself
313-
for (File file : oldDirectory.listFiles()) {
314-
file.renameTo(new File(directory, file.getName()));
315-
}
316-
oldDirectory.delete();
317-
}
318-
}
319-
320308
/**
321309
* This method is used to initialize the whole Protocol Translator
322310
*
@@ -328,7 +316,6 @@ public static CompletableFuture<Void> init(final File directory) {
328316
if (SharedConstants.getProtocolVersion() != NATIVE_VERSION.getOriginalVersion()) {
329317
throw new IllegalStateException("Native version is not the same as the current version");
330318
}
331-
migrateOldConfigs(directory);
332319
patchConfigs(directory);
333320

334321
// Register command callback for /viafabricplus

0 commit comments

Comments
 (0)