Skip to content

Commit

Permalink
Remove old config migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Dec 8, 2024
1 parent ca0e52e commit cc3ba13
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,6 @@ private static void changeBedrockProtocolName() {
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
*
Expand All @@ -328,7 +316,6 @@ public static CompletableFuture<Void> init(final File directory) {
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
Expand Down

0 comments on commit cc3ba13

Please sign in to comment.