Skip to content

Commit 3b8cdc3

Browse files
Kehrlannrwinch
authored andcommitted
Remove unused method
1 parent 109da27 commit 3b8cdc3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeAuthenticationProviderBeanManagerConfigurer.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,6 @@ else if (authenticationProviders.size() > 1) {
8585
authenticationProviderBeanName));
8686
}
8787

88-
/**
89-
* @return a bean of the requested class if there's just a single registered
90-
* component, null otherwise.
91-
*/
92-
private <T> T getBeanOrNull(Class<T> type) {
93-
String[] beanNames = InitializeAuthenticationProviderBeanManagerConfigurer.this.context
94-
.getBeanNamesForType(type);
95-
if (beanNames.length != 1) {
96-
return null;
97-
}
98-
return InitializeAuthenticationProviderBeanManagerConfigurer.this.context.getBean(beanNames[0], type);
99-
}
100-
10188
/**
10289
* @return a list of beans of the requested class, along with their names. If
10390
* there are no registered beans of that type, the list is empty.

0 commit comments

Comments
 (0)