Skip to content

Commit

Permalink
Removing unused variables. Making loop easier to read.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 29, 2009
1 parent 5b4d15d commit 5cbe3db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cake/libs/router.php
Expand Up @@ -410,9 +410,6 @@ function parse($url) {
$self->__currentRoute[] =& $route;

$params = $route->params;
$names = $route->keys;
$defaults = $route->defaults;

$argOptions = array();

if (array_key_exists('named', $params)) {
Expand All @@ -434,7 +431,8 @@ function parse($url) {
}

if (isset($params['pass'])) {
for ($j = count($params['pass']) - 1; $j > -1; $j--) {
$j = count($params['pass']);
while($j--) {
if (isset($out[$params['pass'][$j]])) {
array_unshift($out['pass'], $out[$params['pass'][$j]]);
}
Expand Down

0 comments on commit 5cbe3db

Please sign in to comment.