Remove unused code

Issue gh-9203
This commit is contained in:
Zeeshan Adnan 2020-12-18 20:18:07 +06:00 committed by Josh Cummings
parent 40e027c56d
commit 848bd44837
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 0 additions and 2 deletions

View File

@ -29,7 +29,6 @@ import org.springframework.security.web.util.UrlUtils;
import org.springframework.security.web.util.matcher.AnyRequestMatcher;
import org.springframework.security.web.util.matcher.RequestMatcher;
import org.springframework.util.Assert;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder;
@ -77,7 +76,6 @@ public class CookieRequestCache implements RequestCache {
UriComponents uriComponents = UriComponentsBuilder.fromUriString(originalURI).build();
DefaultSavedRequest.Builder builder = new DefaultSavedRequest.Builder();
int port = getPort(uriComponents);
MultiValueMap<String, String> queryParams = uriComponents.getQueryParams();
return builder.setScheme(uriComponents.getScheme()).setServerName(uriComponents.getHost())
.setRequestURI(uriComponents.getPath()).setQueryString(uriComponents.getQuery()).setServerPort(port)
.setMethod(request.getMethod()).build();