From d2fbe8bfa51031d72d866de31e042284749b6013 Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Tue, 22 Oct 2024 00:29:36 +0300 Subject: [PATCH] 4.x: Remove unused methods 'produce' and 'dispose' from PersistenceExtension.ReferenceCountingProducer (#8872) --- .../cdi/jpa/PersistenceExtension.java | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java b/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java index 1fe45cc0de3..c643716b6ec 100644 --- a/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java +++ b/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java @@ -27,7 +27,6 @@ import java.net.URLClassLoader; import java.security.CodeSource; import java.security.ProtectionDomain; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; @@ -1666,34 +1665,6 @@ private T produce(Supplier supplier, return this.produce(supplier, disposer, Set.of(type), qualifiers); } - private T produce(Supplier supplier, - Consumer disposer, - Class type, - Annotation... qualifiers) { - return this.produce(supplier, disposer, Set.of(type), Set.copyOf(Arrays.asList(qualifiers))); - } - - private T produce(Supplier supplier, - Consumer disposer, - TypeLiteral type, - Set qualifiers) { - return this.produce(supplier, disposer, Set.of(type.getType()), qualifiers); - } - - private T produce(Supplier supplier, - Consumer disposer, - TypeLiteral type, - Annotation... qualifiers) { - return this.produce(supplier, disposer, Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers))); - } - - private T produce(Supplier supplier, - Consumer disposer, - Set types, - Annotation... qualifiers) { - return this.produce(supplier, disposer, types, Set.copyOf(Arrays.asList(qualifiers))); - } - private T produce(Supplier supplier, Consumer disposer, Set types, @@ -1714,22 +1685,6 @@ private void dispose(Class type, Set qualifiers) { this.dispose(Set.of(type), qualifiers); } - private void dispose(Class type, Annotation... qualifiers) { - this.dispose(Set.of(type), Set.copyOf(Arrays.asList(qualifiers))); - } - - private void dispose(TypeLiteral type, Set qualifiers) { - this.dispose(Set.of(type.getType()), qualifiers); - } - - private void dispose(TypeLiteral type, Annotation... qualifiers) { - this.dispose(Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers))); - } - - private void dispose(Set types, Annotation... qualifiers) { - this.dispose(types, Set.copyOf(Arrays.asList(qualifiers))); - } - private void dispose(Set types, Set qualifiers) { Map>> tlMap = TL.get(); Map> map = tlMap.get(this);