[BrowserKit] removed dead code

This commit is contained in:
Fabien Potencier 2013-04-20 20:04:45 +02:00
parent 495d0e366e
commit c884151e16

View File

@ -145,10 +145,9 @@ class Cookie
if ((false === $urlParts = parse_url($url)) || !isset($urlParts['host']) || !isset($urlParts['path'])) {
throw new \InvalidArgumentException(sprintf('The URL "%s" is not valid.', $url));
}
$parts = array_merge($urlParts, $parts);
$values['domain'] = $parts['host'];
$values['path'] = substr($parts['path'], 0, strrpos($parts['path'], '/'));
$values['domain'] = $urlParts['host'];
$values['path'] = substr($urlParts['path'], 0, strrpos($urlParts['path'], '/'));
}
foreach ($parts as $part) {