diff --git a/core/lib/Drupal/Core/ContentNegotiation.php b/core/lib/Drupal/Core/ContentNegotiation.php index e19d9509156..b87b33c56d7 100644 --- a/core/lib/Drupal/Core/ContentNegotiation.php +++ b/core/lib/Drupal/Core/ContentNegotiation.php @@ -27,8 +27,6 @@ class ContentNegotiation { * The request object from which to extract the content type. */ public function getContentType(Request $request) { - $acceptable_content_types = $request->getAcceptableContentTypes(); - // AJAX iframe uploads need special handling, because they contain a json // response wrapped in