Skip to content

Commit 5317e71

Browse files
committed
Remove the update checker
1 parent b1cf8cb commit 5317e71

File tree

7 files changed

+68
-459
lines changed

7 files changed

+68
-459
lines changed

README.MD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ A library for 1.7.10 with lots of useful stuff, licensed under the LGPLv3 licens
1010
| [mixin](src/main/java/com/falsepattern/lib/mixin) | Mixin loader plugin boilerplate code |
1111
| [text](src/main/java/com/falsepattern/lib/text) | Better Chat and GUI text processing |
1212
| [toasts](src/main/java/com/falsepattern/lib/toasts) | The toast system from newer versions, with some extras |
13-
| [updates](src/main/java/com/falsepattern/lib/updates) | Helper code for update checking |
1413
| [util](src/main/java/com/falsepattern/lib/util) | Additional utilities that do not fit the above categories, see below for more information |
1514

1615
The contents of the [util](src/main/java/com/falsepattern/lib/util) package so far:

src/main/java/com/falsepattern/lib/internal/impl/updates/UpdateCheckerImpl.java

Lines changed: 0 additions & 340 deletions
This file was deleted.

src/main/java/com/falsepattern/lib/internal/proxy/CommonProxy.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,8 @@ public void construct(FMLConstructionEvent e) {
5252

5353
public void preInit(FMLPreInitializationEvent e) {
5454
CommonEventHandlerPre.registerBus();
55-
if (LibraryConfig.ENABLE_UPDATE_CHECKER) {
56-
Share.LOG.info("Launching asynchronous update check.");
57-
UpdateChecker.fetchUpdatesAsyncV2(FalsePatternLib.UPDATE_URL).thenApplyAsync(updates -> {
58-
if (updates == null) {
59-
updates = Collections.emptyList();
60-
}
61-
if (updates.isEmpty()) {
62-
Share.LOG.info("No updates found.");
63-
} else {
64-
Share.LOG.info("Found {} updates.", updates.size());
65-
for (val update : updates) {
66-
update.log(Share.LOG);
67-
}
68-
}
69-
return updates;
70-
}).exceptionally(ex -> {
71-
Share.LOG.error("Failed to check for updates!", ex);
72-
return Collections.emptyList();
73-
});
74-
}
7555
}
7656

77-
@Mod.EventHandler
7857
public void init(FMLInitializationEvent e) {
7958
}
8059

0 commit comments

Comments
 (0)