From 3b8cdc323f287c8055080411b237f0f69475a3ee Mon Sep 17 00:00:00 2001 From: Daniel Garnier-Moiroux Date: Thu, 8 Aug 2024 09:10:32 +0200 Subject: [PATCH] Remove unused method --- ...AuthenticationProviderBeanManagerConfigurer.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeAuthenticationProviderBeanManagerConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeAuthenticationProviderBeanManagerConfigurer.java index ebe2d3e8b5..bcf1189902 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeAuthenticationProviderBeanManagerConfigurer.java +++ b/config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeAuthenticationProviderBeanManagerConfigurer.java @@ -85,19 +85,6 @@ class InitializeAuthenticationProviderBeanManagerConfigurer extends GlobalAuthen authenticationProviderBeanName)); } - /** - * @return a bean of the requested class if there's just a single registered - * component, null otherwise. - */ - private T getBeanOrNull(Class type) { - String[] beanNames = InitializeAuthenticationProviderBeanManagerConfigurer.this.context - .getBeanNamesForType(type); - if (beanNames.length != 1) { - return null; - } - return InitializeAuthenticationProviderBeanManagerConfigurer.this.context.getBean(beanNames[0], type); - } - /** * @return a list of beans of the requested class, along with their names. If * there are no registered beans of that type, the list is empty.