Skip to content
Browse files

Remove pointless code.

After the changes in #2709 this code just heats the earth.
  • Loading branch information...
1 parent 82aa048 commit cf16ae055f185761f3430002d23eb900b2c8884a @markstory markstory committed
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/Cake/Routing/Route/CakeRoute.php
View
8 lib/Cake/Routing/Route/CakeRoute.php
@@ -233,12 +233,6 @@ public function parse($url) {
$route[$key] = $value;
}
- foreach ($this->keys as $key) {
- if (isset($route[$key])) {
- $route[$key] = $route[$key];
- }
- }
-
if (isset($route['_args_'])) {
list($pass, $named) = $this->_parseArgs($route['_args_'], $route);
$route['pass'] = array_merge($route['pass'], $pass);
@@ -297,8 +291,6 @@ protected function _parseArgs($args, $context) {
$separatorIsPresent = strpos($param, $namedConfig['separator']) !== false;
if ((!isset($this->options['named']) || !empty($this->options['named'])) && $separatorIsPresent) {
list($key, $val) = explode($namedConfig['separator'], $param, 2);
- $key = $key;
- $val = $val;
$hasRule = isset($rules[$key]);
$passIt = (!$hasRule && !$greedy) || ($hasRule && !$this->_matchNamed($val, $rules[$key], $context));
if ($passIt) {

1 comment on commit cf16ae0

@ADmad
CakePHP member

Everyone must do their part towards global warming :stuck_out_tongue:

Please sign in to comment.
Something went wrong with that request. Please try again.