Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Apr 18, 2016
1 parent 44efeaa commit 31c530a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Symfony/Component/Serializer/Serializer.php
Expand Up @@ -250,15 +250,6 @@ private function denormalizeObject($data, $class, $format, array $context = arra
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));
}

Expand Down

0 comments on commit 31c530a

Please sign in to comment.