Remove dead code

This commit is contained in:
Théo FIDRY 2016-04-18 20:15:00 +01:00
parent 44efeaaa27
commit 31c530ae4a
No known key found for this signature in database
GPG Key ID: 2B998DE558208B67
1 changed files with 0 additions and 9 deletions

View File

@ -250,15 +250,6 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz
return $normalizer->denormalize($data, $class, $format, $context);
}
foreach ($this->normalizers as $normalizer) {
if (
$normalizer instanceof DenormalizerInterface &&
$normalizer->supportsDenormalization($data, $class, $format)
) {
return $normalizer->denormalize($data, $class, $format, $context);
}
}
throw new UnexpectedValueException(sprintf('Could not denormalize object of type %s, no supporting normalizer found.', $class));
}