mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Remove old config migration code
This commit is contained in:
parent
ca0e52e9b1
commit
cc3ba13c98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user