diff --git a/spring-subscription-callback/src/main/java/com/apollographql/subscription/webmvc/CallbackGraphQlHttpHandler.java b/spring-subscription-callback/src/main/java/com/apollographql/subscription/webmvc/CallbackGraphQlHttpHandler.java index 061ac773..3f6132c5 100644 --- a/spring-subscription-callback/src/main/java/com/apollographql/subscription/webmvc/CallbackGraphQlHttpHandler.java +++ b/spring-subscription-callback/src/main/java/com/apollographql/subscription/webmvc/CallbackGraphQlHttpHandler.java @@ -140,30 +140,6 @@ public CallbackGraphQlHttpHandler( } } - // private static MultiValueMap initCookies(ServerRequest serverRequest) { - // MultiValueMap source = serverRequest.cookies(); - // MultiValueMap target = new LinkedMultiValueMap<>(source.size()); - // source - // .values() - // .forEach( - // cookieList -> - // cookieList.forEach( - // cookie -> { - // HttpCookie httpCookie = new HttpCookie(cookie.getName(), - // cookie.getValue()); - // target.add(cookie.getName(), httpCookie); - // })); - // return target; - // } - - // private static Map readBody(ServerRequest request) throws ServletException { - // try { - // return request.body(MAP_PARAMETERIZED_TYPE_REF); - // } catch (IOException ex) { - // throw new ServerWebInputException("I/O error while reading request body", null, ex); - // } - // } - private static MediaType selectResponseMediaType(ServerRequest serverRequest) { for (MediaType accepted : serverRequest.headers().accept()) { if (SUPPORTED_MEDIA_TYPES.contains(accepted)) {