8339837: Remove unused BootstrapMethodsInvokers.isLambdaMetafactoryCondyBSM

Reviewed-by: jvernee
This commit is contained in:
Claes Redestad 2024-09-10 12:34:51 +00:00
parent 4d597de893
commit fb51c1e57b

View file

@ -133,10 +133,6 @@ final class BootstrapMethodInvoker {
result = (CallSite)bootstrapMethod
.invokeBasic(caller, name, (MethodType)type, (MethodType)argv[0],
(MethodHandle)argv[1], (MethodType)argv[2]);
} else if (isLambdaMetafactoryCondyBSM(bsmType) && argv.length == 3) {
result = bootstrapMethod
.invokeBasic(caller, name, (Class<?>)type, (MethodType)argv[0],
(MethodHandle)argv[1], (MethodType)argv[2]);
} else if (isStringConcatFactoryBSM(bsmType) && argv.length >= 1) {
String recipe = (String)argv[0];
Object[] shiftedArgs = Arrays.copyOfRange(argv, 1, argv.length);
@ -252,9 +248,6 @@ final class BootstrapMethodInvoker {
private static final MethodType OBJECT_METHODS_MT = MethodType.methodType(Object.class,
Lookup.class, String.class, TypeDescriptor.class, Class.class, String.class, MethodHandle[].class);
private static final MethodType LMF_CONDY_MT = MethodType.methodType(Object.class,
Lookup.class, String.class, Class.class, MethodType.class, MethodHandle.class, MethodType.class);
private static final MethodType SCF_MT = MethodType.methodType(CallSite.class,
Lookup.class, String.class, MethodType.class, String.class, Object[].class);
@ -267,15 +260,6 @@ final class BootstrapMethodInvoker {
return bsmType == SCF_MT;
}
/**
* @return true iff the BSM method type exactly matches
* {@link java.lang.invoke.LambdaMetafactory#metafactory(
* MethodHandles.Lookup,String,Class,MethodType,MethodHandle,MethodType)}
*/
private static boolean isLambdaMetafactoryCondyBSM(MethodType bsmType) {
return bsmType == LMF_CONDY_MT;
}
/**
* @return true iff the BSM method type exactly matches
* {@link java.lang.invoke.LambdaMetafactory#metafactory(