From 7d97c767d07c7e916d1498b07d6667228f7e6110 Mon Sep 17 00:00:00 2001 From: IoyoCode Date: Thu, 2 Nov 2023 16:53:56 +0000 Subject: [PATCH] reversed previous change --- src/main/java/com/seailz/discordjar/model/guild/Guild.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/seailz/discordjar/model/guild/Guild.java b/src/main/java/com/seailz/discordjar/model/guild/Guild.java index 7d77fffa..1d5a0da9 100644 --- a/src/main/java/com/seailz/discordjar/model/guild/Guild.java +++ b/src/main/java/com/seailz/discordjar/model/guild/Guild.java @@ -391,13 +391,6 @@ public static Guild decompile(JSONObject obj, DiscordJar discordJar) { @NotNull public static Guild decompile(JSONObject obj, DiscordJar discordJar, boolean bypassCache) { - // If the cache happens to contain the current guild, we'll use that instead of creating a new one. - // Helpful for slight memory optimization & performance. - Guild cachedGuild = discordJar.getGuildCache().returnFromCache(obj.getString("id")); - if (cachedGuild != null && !bypassCache) { - return cachedGuild; - } - long nano = System.nanoTime(); String id; String name;