From 5cbe3dbd39bbda11206ee45fb1315bf395c99fe4 Mon Sep 17 00:00:00 2001 From: mark_story <mark@mark-story.com> Date: Sat, 28 Nov 2009 21:58:02 -0500 Subject: [PATCH] Removing unused variables. Making loop easier to read. --- cake/libs/router.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cake/libs/router.php b/cake/libs/router.php index 1a3312c81..454d9d842 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -410,9 +410,6 @@ class Router { $self->__currentRoute[] =& $route; $params = $route->params; - $names = $route->keys; - $defaults = $route->defaults; - $argOptions = array(); if (array_key_exists('named', $params)) { @@ -434,7 +431,8 @@ class Router { } 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]]); }