Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 3, 2025
1 parent e26c161 commit 99bcd3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ public void setUseRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly)
this.useRegisteredExtensionsOnly = useRegisteredExtensionsOnly;
}

private boolean useRegisteredExtensionsOnly() {
return (this.useRegisteredExtensionsOnly != null && this.useRegisteredExtensionsOnly);
}

/**
* Whether to disable checking the 'Accept' request header.
* <p>By default this value is set to {@code false}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,6 @@ void testResources() throws Exception {
HttpRequestHandlerAdapter adapter = appContext.getBean(HttpRequestHandlerAdapter.class);
assertThat(adapter).isNotNull();

RequestMappingHandlerMapping mapping = appContext.getBean(RequestMappingHandlerMapping.class);
ContentNegotiationManager manager = mapping.getContentNegotiationManager();

SimpleUrlHandlerMapping resourceMapping = appContext.getBean(SimpleUrlHandlerMapping.class);
assertThat(resourceMapping).isNotNull();
assertThat(resourceMapping.getOrder()).isEqualTo(Ordered.LOWEST_PRECEDENCE - 1);
Expand Down

0 comments on commit 99bcd3a

Please sign in to comment.