[HttpFoundation] removed unnecessary method
[HttpFoundation] removed unnecessary method


oswaldderiemaecker/HttpFoundation,symfony/http-foundation,mneuhaus/HttpFoundation,nichdu/HttpFoundation,ygerasimov/HttpFoundation,symfony/HttpFoundation