From 6cff9e695b74b61e2c986b89a145d2c64ccc949f Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Tue, 11 Jun 2024 21:12:49 +0300 Subject: [PATCH] 4.x: Remove unused methods 'produce' and 'dispose' from PersistenceExtension.ReferenceCountingProducer --- .../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 665a2c1c367..2d3ad237ecb 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; @@ -1642,34 +1641,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, @@ -1690,22 +1661,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);