[BrowserKit] removed dead code
This commit is contained in:
parent
495d0e366e
commit
c884151e16
@ -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) {
|
||||
|
Reference in New Issue
Block a user