From c863cd5f54fa252cef18faaff1feabe878c8d704 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 20 Aug 2024 20:46:17 -0500 Subject: [PATCH] removed one time used empty hashset --- src/engine/powers/EffectsBase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/powers/EffectsBase.java b/src/engine/powers/EffectsBase.java index 18d9cf6e..299d3d20 100644 --- a/src/engine/powers/EffectsBase.java +++ b/src/engine/powers/EffectsBase.java @@ -47,7 +47,6 @@ public class EffectsBase { public static HashMap> modifiersMap = new HashMap<>(); public static HashMap> EffectDamageTypes = new HashMap<>(); - public static HashSet DefaultModifiers = new HashSet<>(); private static ConcurrentHashMap itemEffectsByName = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW); private static int NewID = 3000; private int UUID; @@ -372,7 +371,7 @@ public class EffectsBase { public HashSet getModifiers() { if (EffectsBase.modifiersMap.containsKey(this.IDString) == false) - return EffectsBase.DefaultModifiers; + return new HashSet<>(); // was never used or assigned to? return EffectsBase.modifiersMap.get(this.IDString); }