From e4283c24441904972d1fd3ef1e33dcf3a07c34cc Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 20 Aug 2023 14:40:12 -0400 Subject: [PATCH] Unused orphan npc collection removed. --- src/engine/objects/NPC.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 82e4d1b5..652631c7 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -44,7 +44,6 @@ import static engine.util.StringUtils.wordCount; public class NPC extends AbstractCharacter { public static int SVR_CLOSE_WINDOW = 4; - public static ArrayList Oprhans = new ArrayList<>(); public static HashMap> _pirateNames = new HashMap<>(); // Used for thread safety public final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); @@ -1048,10 +1047,6 @@ public class NPC extends AbstractCharacter { else this.guild = Guild.getGuild(this.guildUUID); - if (this.guildUUID != 0 && (this.guild == null || this.guild.isEmptyGuild())) - NPC.Oprhans.add(currentID); - else if (this.building == null && this.buildingUUID > 0) - NPC.Oprhans.add(currentID); if (this.guild == null) this.guild = Guild.getErrantGuild();