Skip to content

Commit

Permalink
4.x: Remove unused methods 'produce' and 'dispose' from PersistenceEx…
Browse files Browse the repository at this point in the history
…tension.ReferenceCountingProducer
  • Loading branch information
Captain1653 committed Aug 30, 2024
1 parent 247334f commit 6cff9e6
Showing 1 changed file with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1642,34 +1641,6 @@ private <T> T produce(Supplier<? extends T> supplier,
return this.produce(supplier, disposer, Set.of(type), qualifiers);
}

private <T> T produce(Supplier<? extends T> supplier,
Consumer<? super T> disposer,
Class<T> type,
Annotation... qualifiers) {
return this.produce(supplier, disposer, Set.of(type), Set.copyOf(Arrays.asList(qualifiers)));
}

private <T> T produce(Supplier<? extends T> supplier,
Consumer<? super T> disposer,
TypeLiteral<T> type,
Set<Annotation> qualifiers) {
return this.produce(supplier, disposer, Set.of(type.getType()), qualifiers);
}

private <T> T produce(Supplier<? extends T> supplier,
Consumer<? super T> disposer,
TypeLiteral<T> type,
Annotation... qualifiers) {
return this.produce(supplier, disposer, Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers)));
}

private <T> T produce(Supplier<? extends T> supplier,
Consumer<? super T> disposer,
Set<Type> types,
Annotation... qualifiers) {
return this.produce(supplier, disposer, types, Set.copyOf(Arrays.asList(qualifiers)));
}

private <T> T produce(Supplier<? extends T> supplier,
Consumer<? super T> disposer,
Set<Type> types,
Expand All @@ -1690,22 +1661,6 @@ private <T> void dispose(Class<T> type, Set<Annotation> qualifiers) {
this.dispose(Set.of(type), qualifiers);
}

private <T> void dispose(Class<T> type, Annotation... qualifiers) {
this.dispose(Set.of(type), Set.copyOf(Arrays.asList(qualifiers)));
}

private <T> void dispose(TypeLiteral<T> type, Set<Annotation> qualifiers) {
this.dispose(Set.of(type.getType()), qualifiers);
}

private <T> void dispose(TypeLiteral<T> type, Annotation... qualifiers) {
this.dispose(Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers)));
}

private <T> void dispose(Set<Type> types, Annotation... qualifiers) {
this.dispose(types, Set.copyOf(Arrays.asList(qualifiers)));
}

private <T> void dispose(Set<Type> types, Set<Annotation> qualifiers) {
Map<ReferenceCountingProducer, Map<ProductionId, Production<?>>> tlMap = TL.get();
Map<ProductionId, Production<?>> map = tlMap.get(this);
Expand Down

0 comments on commit 6cff9e6

Please sign in to comment.