diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/LocalRepository.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/LocalRepository.java index c2e67fbb6..6bf59f2d9 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/LocalRepository.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/LocalRepository.java @@ -48,7 +48,6 @@ final class LocalRepository { private LocalRepository() {} private static Path localStorage = Launcher.HMCL_DIRECTORY.toPath().resolve("hmcl.jar"); - private static Path hmclVersionJson = Launcher.HMCL_DIRECTORY.toPath().resolve("hmclver.json"); /** * Gets the current stored executable in local repository. @@ -70,14 +69,6 @@ final class LocalRepository { } else { Files.copy(source, localStorage, StandardCopyOption.REPLACE_EXISTING); } - - Optional stored = getStored(); - if (stored.isPresent()) { - Map json = new HashMap<>(); - json.put("ver", stored.get().getVersion()); - json.put("loc", stored.get().getLocation().toString()); - FileUtils.writeText(hmclVersionJson.toFile(), Constants.GSON.toJson(json)); - } } /**