Skip to content

Commit bbfab98

Browse files
committed
HHH-19733 Remove some more dead code
1 parent ac047cd commit bbfab98

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyProxyHelper.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
import java.io.Serializable;
88
import java.lang.reflect.Method;
99
import java.util.Collection;
10-
import java.util.Collections;
11-
import java.util.HashSet;
1210
import java.util.Locale;
13-
import java.util.Set;
1411
import java.util.function.BiFunction;
1512
import java.util.function.Function;
1613

@@ -49,12 +46,6 @@ public ByteBuddyProxyHelper(ByteBuddyState byteBuddyState) {
4946
public Class buildProxy(
5047
final Class<?> persistentClass,
5148
final Class<?>[] interfaces) {
52-
Set<Class<?>> key = new HashSet<>();
53-
if ( interfaces.length == 1 ) {
54-
key.add( persistentClass );
55-
}
56-
Collections.addAll( key, interfaces );
57-
5849
final String proxyClassName = persistentClass.getTypeName() + "$" + PROXY_NAMING_SUFFIX;
5950
return byteBuddyState.loadProxy( persistentClass, proxyClassName,
6051
proxyBuilder( TypeDescription.ForLoadedType.of( persistentClass ), new TypeList.Generic.ForLoadedTypes( interfaces ) ) );

0 commit comments

Comments
 (0)